Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FP MQTTPacket
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();
}
