This commit is contained in:
Wolfgang Hottgenroth
2014-05-14 19:37:04 +02:00
commit ca8ed709b8
22 changed files with 1468 additions and 0 deletions

31
meterBusServer.h Normal file
View 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_ */