Removed blocking keepalive code
Dependencies: EthernetInterface mbed-rtos
Fork of niMQTT by
Diff: niMQTT.cpp
- Revision:
- 1:4faa96fa4350
- Parent:
- 0:d4dfed20c6ea
- Child:
- 4:afbc7b066cff
--- a/niMQTT.cpp Wed Aug 07 12:57:21 2013 +0000 +++ b/niMQTT.cpp Wed Aug 07 13:33:54 2013 +0000 @@ -1,6 +1,6 @@ #include "niMQTT.h" -niMQTT::niMQTT(char *server, int port, char *id, void (*callback)(char*, char*), char *username, char *password, bool debug): +niMQTT::niMQTT(char *server, void (*callback)(char*, 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) {