MQTT library (clone of https://os.mbed.com/teams/mqtt/code/MQTT/)
Dependencies: FP MQTTPacket
Dependents: NuMaker-mbed-AWS-IoT-example NuMaker-mbed-OS-6-AWS-IoT-example
MQTTEthernet.h
00001 00002 #if !defined(MQTTETHERNET_H) 00003 #define MQTTETHERNET_H 00004 00005 #include "MQTTmbed.h" 00006 #include "EthernetInterface.h" 00007 #include "MQTTSocket.h" 00008 00009 class MQTTEthernet : public MQTTSocket 00010 { 00011 public: 00012 MQTTEthernet() : MQTTSocket(ð) 00013 { 00014 eth.connect(); 00015 } 00016 00017 EthernetInterface& getEth() 00018 { 00019 return eth; 00020 } 00021 00022 private: 00023 00024 EthernetInterface eth; 00025 00026 }; 00027 00028 00029 #endif
Generated on Wed Sep 7 2022 05:40:55 by 1.7.2