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.
Fork of MQTT by
Revision 61:457729cb1518, committed 2018-01-12
- Comitter:
- wkleunen
- Date:
- Fri Jan 12 16:25:43 2018 +0000
- Parent:
- 59:9cff7b6bbd01
- Commit message:
- Use NetworkInterface rather than EthernetInterface in MQTTSocket to allow all kind of network interfaces
Changed in this revision
| MQTTSocket.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MQTTSocket.h Thu Nov 02 12:12:41 2017 +0000
+++ b/MQTTSocket.h Fri Jan 12 16:25:43 2018 +0000
@@ -2,13 +2,13 @@
#define MQTTSOCKET_H
#include "MQTTmbed.h"
-#include <EthernetInterface.h>
+#include <NetworkInterface.h>
#include <Timer.h>
class MQTTSocket
{
public:
- MQTTSocket(EthernetInterface *anet)
+ MQTTSocket(NetworkInterface *anet)
{
net = anet;
open = false;
@@ -89,7 +89,7 @@
bool open;
TCPSocket mysock;
- EthernetInterface *net;
+ NetworkInterface *net;
Timer timer;
};
