hellomqttt to thingspeak mqtt and ifttt
Dependencies: Servo MQTTPacket FP
Diff: MQTT/MQTTEthernet.h
- Revision:
- 25:ca1b1098c77f
diff -r d2e25cdf9084 -r ca1b1098c77f MQTT/MQTTEthernet.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MQTT/MQTTEthernet.h Wed May 05 14:48:01 2021 +0000 @@ -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