Updated version of MQTT Arduino ported to mbed, with additional functionality for lower barrier of entry
Fork of MQTT by
Revision 2:52a50084cec3, committed 2014-05-10
- Comitter:
- gkutsy
- Date:
- Sat May 10 19:36:14 2014 +0000
- Parent:
- 1:f794fdfd3ecf
- Commit message:
- asdf
Changed in this revision
PubSubClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
PubSubClient.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r f794fdfd3ecf -r 52a50084cec3 PubSubClient.cpp --- a/PubSubClient.cpp Sat May 10 19:26:08 2014 +0000 +++ b/PubSubClient.cpp Sat May 10 19:36:14 2014 +0000 @@ -35,6 +35,8 @@ t.start(); } +PubSubClient::PubSubClient(char *ip, uint16_t port, + bool PubSubClient::connect(char *id) {
diff -r f794fdfd3ecf -r 52a50084cec3 PubSubClient.h --- a/PubSubClient.h Sat May 10 19:26:08 2014 +0000 +++ b/PubSubClient.h Sat May 10 19:36:14 2014 +0000 @@ -53,7 +53,7 @@ bool write(short header, char* buf, int length); int writeString(char* string, char* buf, int pos); char* ip; - int port; + uint16_t port; public: PubSubClient(); PubSubClient(char*, int, void(*)(char*,char*,unsigned int));