Provides Javascript wrappers for MQTT.
Dependencies: mbed-http DEVI2C_JS MQTTPacket FP
Diff: MQTT/MQTTEthernet.h
- Revision:
- 0:f4dbe435e64c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MQTT/MQTTEthernet.h Wed Jan 17 11:30:51 2018 +0100 @@ -0,0 +1,29 @@ + +#if !defined(MQTTETHERNET_H) +#define MQTTETHERNET_H + +#include "MQTTmbed.h" +#include "EthernetInterface.h" +#include "MQTTSocket.h" + +class MQTTEthernet : public MQTTSocket +{ +public: + MQTTEthernet() : MQTTSocket(ð) + { + eth.connect(); + } + + EthernetInterface& getEth() + { + return eth; + } + +private: + + EthernetInterface eth; + +}; + + +#endif