MQTT For Wiz750sr
Fork of MQTT by
Revision 50:0e47e6957bfc, committed 2018-07-29
- Comitter:
- dodo_1234
- Date:
- Sun Jul 29 00:28:10 2018 +0000
- Parent:
- 49:f409e1191fa1
- Commit message:
- Aquarium_AssistantV1
Changed in this revision
MQTTEthernet.h | Show annotated file Show diff for this revision Revisions of this file |
MQTTSocket.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r f409e1191fa1 -r 0e47e6957bfc MQTTEthernet.h --- a/MQTTEthernet.h Mon Jul 16 09:46:48 2018 +0000 +++ b/MQTTEthernet.h Sun Jul 29 00:28:10 2018 +0000 @@ -16,7 +16,7 @@ wait(1); this->createSocket(); //eth.init(mac_addr,ip_addr,snmask,gw_addr); // Do not use DHCP! If you use DHCP use "eth.init(mac_addr);". - uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x32, 0x23, 0x42}; + uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x54, 0x88, 0x76}; eth.init(mac_addr);
diff -r f409e1191fa1 -r 0e47e6957bfc MQTTSocket.h --- a/MQTTSocket.h Mon Jul 16 09:46:48 2018 +0000 +++ b/MQTTSocket.h Sun Jul 29 00:28:10 2018 +0000 @@ -15,6 +15,7 @@ int connect(char* hostname, int port, int timeout=1000) { + mysock->set_timeout(timeout); mysock->set_blocking(false, timeout); // 1 second Timeout return mysock->connect(hostname, port); }