Had to fork with a different name, because of some incompatibility issues.
Diff: DeviceClient.cpp
- Revision:
- 10:665cfb0da4c5
- Parent:
- 8:cb2c98efdca8
- Child:
- 12:ac091f717e40
diff -r 9ea837ba2b8b -r 665cfb0da4c5 DeviceClient.cpp --- a/DeviceClient.cpp Fri Sep 28 22:29:30 2018 +0000 +++ b/DeviceClient.cpp Wed Dec 12 22:32:35 2018 +0000 @@ -19,11 +19,6 @@ #include "MQTTClient.h" #include "DeviceClient.h" -static uint32_t linkStatus(void) -{ - return (1); -} - // need a wrapper since K64F and LPC1768 wont have the same name for mii read methods #if defined(TARGET_UBLOX_C027) || defined(TARGET_K64F) @@ -326,7 +321,7 @@ sprintf(topic, "%.*s", md.topicName.lenstring.len, md.topicName.lenstring.data); - LOG("Message arrived on topic %s: %.*s\r\n", topic, message.payloadlen, message.payload); + LOG("Message arrived on topic %s: Length: %ul. Payload: %s\r\n", topic, message.payloadlen, message.payload); // Command topic: iot-2/cmd/blink/fmt/json - cmd is the string between cmd/ and /fmt/ char* start = strstr(topic, "/cmd/") + 5; @@ -408,3 +403,8 @@ //return iplocal; return (char*)net->get_ip_address(); } + +//NetworkInterface* DeviceClient::eth() { +// NetworkInterface* net = mqttNetwork->getEth(); +// return (NetworkInterface*)net; +//} \ No newline at end of file