124 Commits

Author SHA1 Message Date
Nick O'Leary
4c8ce14dad Merge pull request #169 from igrr/master
Use random MQTT client ID in example sketch
2016-08-21 23:22:25 +01:00
Nick O'Leary
df4122466c Merge pull request #173 from edwin-oetelaar/master
Reduce stack usage in loop(). no data duplication on stack
2016-08-21 23:21:03 +01:00
Edwin vd Oetelaar PA2LVD
d724864095 Reduce stack usage in loop(). No need to duplicate
topic string onto stack before giving it to callback()
Just move it one byte in buffer to add space for 'C' string end \0x00
2016-06-26 20:53:07 +02:00
Ivan Grokhotkov
33170273a9 Use random MQTT client ID in example sketch
Many users load the sketch having only changed WiFi SSID and password. When multiple users attempt to connect to the same broker using same client ID, they get rejected. Currently the chances of connecting to broker.mqtt-dashboard.com using "ESP8266Client" ID are fairly slim. This change adds a random number to the client ID, increasing chances of connection for new users of this library.
2016-06-14 19:10:15 +08:00
Nick O'Leary
35ead348e3 Fix esp8266 example 2016-02-13 21:23:48 +00:00
Nick O'Leary
341661671b Revert breaking change to callback signature v2.6 2016-02-02 07:40:48 +00:00
Nick O'Leary
4739ca0802 Update library files
closes #44
v2.5
2016-01-31 20:53:44 +00:00
Nick O'Leary
36bb1ffa6a Merge pull request #96 from ElvisTheKing/patch-1
correct handling of dns fauilure
2016-01-31 20:48:43 +00:00
Nick O'Leary
83b69a766e Merge pull request #120 from tomkcook/master
Use std::function on ESP8266 platform.
2016-01-31 20:47:32 +00:00
Nick O'Leary
baeb59e263 Merge pull request #119 from skorokithakis/master
Add definable parameters.
2016-01-31 20:41:19 +00:00
Tom Cook
67eba6dad4 Moved #include of <functional> 2016-01-27 12:41:50 +00:00
Tom Cook
98a9c296f6 Made use of std::function ESP8266-specific. 2016-01-27 12:39:43 +00:00
Stavros Korokithakis
68400b7b6c Add definable parameters. 2016-01-26 12:52:38 +02:00
Tom Cook
21b75a2c4a Changed callback type. 2016-01-26 09:50:27 +00:00
Sergey Konyukhovskiy
830f34c7d0 correct handling of dns fauilure
In case of domain name resolution error result can be negative (see Dns.cpp:46)
2015-12-04 04:10:18 +03:00
Nick O'Leary
0bb4efcea5 Update for 2.4 2.4 2015-11-21 20:56:32 +00:00
Nick O'Leary
31521085ea Increase rc of write to uint16 to match max possible length
Fixes #85
2015-11-21 20:36:21 +00:00
Nick O'Leary
8a1d7fb620 Merge pull request #93 from vicatcu/master
Implement timeout behavior in readByte / readPacket
2015-11-21 20:20:35 +00:00
Victor Aprea
803f54b0bd changes to use #define MQTT_SOCKET_TIMEOUT instead of dynamic read timeout interval, per comments from @knolleary on https://github.com/knolleary/pubsubclient/issues/87 2015-11-19 13:58:23 -05:00
Victor Aprea
6f97ea04f2 minor cleanup 2015-11-19 09:23:40 -05:00
Victor Aprea
6bb06187b7 added optional timeout setting so that readByte can be escaped 2015-11-18 17:19:41 -05:00
Nick O'Leary
efebd2e5e4 Merge pull request #82 from e-lin/master
Match the length of type for writing data
2015-10-04 19:35:29 +01:00
Elsa
5cdadf43da Match the length of type for writing data
In MQTT_MAX_TRANSFER_SIZE case, the variable bytesRemaining needs to match the type of data length.
2015-10-04 22:16:27 +09:00
Nick O'Leary
2f97e4a558 Add publish(topic,payload,retained) function v2.3 2015-09-11 23:25:21 +01:00
Nick O'Leary
15a0e41c81 Update project url 2015-09-09 20:52:20 +01:00
Nick O'Leary
aa9afc7b44 Fix esp example 2015-09-09 10:32:35 +01:00
Nick O'Leary
461cbdb6e8 Merge pull request #75 from marcelrv/patch-1
Example for ESP8266
2015-09-09 10:23:29 +01:00
Nick O'Leary
47a37a4663 Update library.properties 2015-09-09 10:22:06 +01:00
Nick O'Leary
efcf6dbf1e Update README.md 2015-09-09 10:18:08 +01:00
Nick O'Leary
d5c13d578e Update README.md 2015-09-09 10:17:19 +01:00
Marcel
b6f2cb29bc Example for ESP8266
I was very happy to see this working well. Now ESP8266 and MQTT becomes even more easy.
Maybe attached example will help others to quickly get started
2015-09-09 09:36:39 +02:00
Nick O'Leary
c1d327cac6 Update tests makefile for new src location v2.2 2015-09-07 23:06:38 +01:00
Nick O'Leary
5ace47bc93 Re-layout project to match Arduino Library reqs 2015-09-07 22:56:53 +01:00
Nick O'Leary
da87f50b98 Update library.properties v2.1 2015-09-07 21:18:39 +01:00
Nick O'Leary
8c56c2f9fc Update README.md 2015-09-07 21:14:26 +01:00
Nick O'Leary
ce6b128efb Update CHANGES.txt 2015-09-07 21:10:02 +01:00
Nick O'Leary
2b582f6899 Add MAX_TRANSFER_SIZE def to chunk messages if needed 2015-09-07 18:06:17 +01:00
Nick O'Leary
545d0045f9 Reject topic/payloads that exceed MQTT_MAX_PACKET_SIZE 2015-09-02 10:44:21 +01:00
Nick O'Leary
fc02df2f6f Fix subscribe test description 2015-08-28 23:13:31 +01:00
Nick O'Leary
a181852893 Update travis to use container infrastructure 2015-08-28 23:07:48 +01:00
Nick O'Leary
c51f6c1673 Reenable all keepalive tests 2015-08-28 22:49:10 +01:00
Nick O'Leary
0d11ce4a7e Fix keepalive test & add state checks to connect test 2015-08-28 22:44:52 +01:00
Nick O'Leary
1c54371b1c Update tests & add travis 2015-08-28 22:16:48 +01:00
Nick O'Leary
9459df9d44 Update changes file v2.0 2015-08-28 16:38:46 +01:00
Nick O'Leary
f6521a2ed0 Readme update 2015-08-28 13:44:56 +01:00
Nick O'Leary
fa5b7f75d1 Tidy up more api and examples 2015-08-28 11:21:52 +01:00
Nick O'Leary
8e7e99cb8d Tidy up PROGMEM and const char*s 2015-08-27 23:22:54 +01:00
Nick O'Leary
12a9d89ea2 Add wider IPAddress support in api 2015-08-27 14:18:16 +01:00
Nick O'Leary
c753ecaebe Add MQTT 3.1.1 support 2015-08-26 23:07:22 +01:00
Nick O'Leary
c1a522102d Ensure big packets are properly length encoded
Fixes #63
2015-08-26 22:23:55 +01:00