initial
This commit is contained in:
31
meterBusServer.h
Normal file
31
meterBusServer.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* meterBusServer.h
|
||||
*
|
||||
* Created on: 16.09.2013
|
||||
* Author: wn
|
||||
*/
|
||||
|
||||
#ifndef METERBUSSERVER_H_
|
||||
#define METERBUSSERVER_H_
|
||||
|
||||
|
||||
#include <Ethernet.h>
|
||||
#include "mBusDialog.h"
|
||||
|
||||
|
||||
class MeterBusServer : public ResponseCallback {
|
||||
public:
|
||||
MeterBusServer(uint16_t port, RequestSender *meterBusMaster);
|
||||
void begin();
|
||||
void exec();
|
||||
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength);
|
||||
virtual void sendError(uint8_t code);
|
||||
private:
|
||||
EthernetServer m_server;
|
||||
EthernetClient m_client;
|
||||
RequestSender *m_meterBusMaster;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* METERBUSSERVER_H_ */
|
Reference in New Issue
Block a user