An API for using MQTT over multiple transports
Dependencies: FP MQTTPacket
Dependents: IBMIoTClientEthernetExample_W5500 IBMIoTClientEthernetExample_W5200
Fork of MQTT by
Revision 43:b1ae0ac88df9, committed 2014-09-26
- Comitter:
- kaizen
- Date:
- Fri Sep 26 08:04:47 2014 +0000
- Parent:
- 42:f5beda831651
- Child:
- 44:f53a95f9c1d8
- Commit message:
- Convert for W5500 Library
Changed in this revision
MQTTClient.h | Show annotated file Show diff for this revision Revisions of this file |
MQTTEthernet.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MQTTClient.h Thu Aug 21 12:40:43 2014 +0000 +++ b/MQTTClient.h Fri Sep 26 08:04:47 2014 +0000 @@ -125,7 +125,7 @@ void setLogHandler() { - logHandler.attach(lh); + // logHandler.attach(lh); } @@ -702,4 +702,4 @@ } -#endif \ No newline at end of file +#endif
--- a/MQTTEthernet.h Thu Aug 21 12:40:43 2014 +0000 +++ b/MQTTEthernet.h Fri Sep 26 08:04:47 2014 +0000 @@ -3,15 +3,21 @@ #define MQTTETHERNET_H #include "MQTT_mbed.h" -#include "EthernetInterface.h" +#include "../W5500Interface/EthernetInterface.h" #include "MQTTSocket.h" class MQTTEthernet : public MQTTSocket { public: - MQTTEthernet() +// MQTTEthernet() +// { +// eth.init(); // Use DHCP +// eth.connect(); +// } + + MQTTEthernet(SPI* spi, PinName cs, PinName reset): eth(spi, cs, reset) { - eth.init(); // Use DHCP + eth.init(); eth.connect(); }