20 Commits

Author SHA1 Message Date
64e981190b Merge branch 'master' into pr_282 2020-05-20 00:49:38 +01:00
d88909db3e declare wifi mode prior to connect
must have statement for current Arduino Framework, see also https://github.com/knolleary/pubsubclient/issues/138#issuecomment-326113915
2019-12-24 11:08:59 +01:00
d64528b31b Merge branch 'master' into esp8266_example_fixes 2019-11-25 11:36:58 +00:00
299c8293cb Merge pull request #365 from czaraugust/master
Adding some speed improvments
2019-11-25 11:27:24 +00:00
539838822c Merge pull request #481 from bwibwi13/master
Correct maximum size of snprintf (use same size as the buffer ;)
2018-11-01 23:32:13 +00:00
7517de7974 Merge pull request #494 from mcqn/master
Add large message API
2018-11-01 23:24:33 +00:00
a1cfd5af56 Fix spelling in mqtt_esp8266 example 2018-09-24 00:29:11 +05:30
b2f3a6d2ec Add example code for using the large message API. 2018-09-04 13:36:45 +01:00
c87c9a47b3 Correct maximum size of snprintf (use same size as the buffer ;) 2018-08-19 08:39:39 +02:00
6bc3b76a9b Adding improvments 2017-12-07 12:20:23 -03:00
5b23a97fb0 Update documentation for dynamic buffer resizing. 2017-04-30 10:43:18 +01:00
98ad16eff8 Correct buffer overflow and remove magic constants from esp8266 example
The msg[] array is defined as 50 bytes long, but then the snprintf is
protected at 75 bytes long, which is incorrectly 25 bytes longer than
the underlying array.

To correct this, define a new macro MSG_BUFFER_SIZE and use it in both
places:
 * defining msg[]
 * writing to msg[] with snprintf()
2017-04-25 20:43:54 -07:00
b85f4dc35c Corrected time data types in esp8266 example
The millis() function returns unsigned longs, not longs.
2017-04-25 20:39:09 -07:00
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
35ead348e3 Fix esp8266 example 2016-02-13 21:23:48 +00:00
aa9afc7b44 Fix esp example 2015-09-09 10:32:35 +01:00
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
5ace47bc93 Re-layout project to match Arduino Library reqs 2015-09-07 22:56:53 +01:00
ce9fff9349 Restructure code 2011-03-23 21:18:22 +00:00
ef565d8d98 Added examples directory and mqtt_basic example 2011-01-11 21:19:50 +00:00