USE YHTANG AWS ACCOUNT TO TEST MQTT
Dependents: NuMaker-mbed-AWS-IoT-example
MQTTEthernet.h
- Committer:
- icraggs
- Date:
- 2014-05-22
- Revision:
- 31:a51dd239b78e
- Parent:
- 29:833386b16f3e
- Child:
- 41:b7e86fa6dbb8
File content as of revision 31:a51dd239b78e:
#if !defined(MQTTETHERNET_H) #define MQTTETHERNET_H #include "MQTT_mbed.h" #include "EthernetInterface.h" #include "MQTTSocket.h" class MQTTEthernet : public MQTTSocket { public: MQTTEthernet() { eth.init(); // Use DHCP eth.connect(); } private: EthernetInterface eth; }; #endif