An MQTT Client for the new etherNet Interface.
Dependencies: EthernetInterface mbed-rtos
Dependents: AV_MQTT niMQTT_example
Revision 8:438958bb9df3, committed 2013-08-13
- Comitter:
- Nim65s
- Date:
- Tue Aug 13 13:36:05 2013 +0000
- Parent:
- 7:d01d8f0bac58
- Commit message:
- add a virtual call_callback(topic, message)
Changed in this revision
niMQTT.cpp | Show annotated file Show diff for this revision Revisions of this file |
niMQTT.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r d01d8f0bac58 -r 438958bb9df3 niMQTT.cpp --- a/niMQTT.cpp Tue Aug 13 12:44:36 2013 +0000 +++ b/niMQTT.cpp Tue Aug 13 13:36:05 2013 +0000 @@ -199,7 +199,7 @@ waiting_new_packet = true; - callback(topic, message); + call_callback(topic, message); } int niMQTT::puback() { @@ -382,3 +382,7 @@ } while (X > 0); return rll; } + +void niMQTT::call_callback(const char *topic, const char *message) { + callback(topic, message); +} \ No newline at end of file
diff -r d01d8f0bac58 -r 438958bb9df3 niMQTT.h --- a/niMQTT.h Tue Aug 13 12:44:36 2013 +0000 +++ b/niMQTT.h Tue Aug 13 13:36:05 2013 +0000 @@ -116,6 +116,7 @@ Thread thread; void publish_received(); + virtual void call_callback(const char *topic, const char *message); bool waiting_new_packet, packet_sent; int waiting_connack, waiting_suback, waiting_pingresp;