Removed blocking keepalive code
Dependencies: EthernetInterface mbed-rtos
Fork of niMQTT by
Diff: niMQTT.cpp
- Revision:
- 6:661892e00fe1
- Parent:
- 5:3d21020a2826
- Child:
- 7:d01d8f0bac58
--- a/niMQTT.cpp Mon Aug 12 15:31:55 2013 +0000 +++ b/niMQTT.cpp Tue Aug 13 12:26:57 2013 +0000 @@ -1,6 +1,6 @@ #include "niMQTT.h" -niMQTT::niMQTT(char *server, void (*callback)(char*, char*), char *id, int port, char *username, char *password, bool debug): +niMQTT::niMQTT(char *server, void (*callback)(const char*, const char*), char *id, int port, char *username, char *password, bool debug): server(server), port(port), id(id), callback(callback), username(username), password(password), debug(debug), connected(true), message_id(0), thread(&niMQTT::thread_starter, this), waiting_new_packet(true), packet_sent(false), waiting_connack(0), waiting_suback(0), waiting_pingresp(0) {