12 Commits

Author SHA1 Message Date
Leo Zimmermann
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
Nick O'Leary
d64528b31b
Merge branch 'master' into esp8266_example_fixes 2019-11-25 11:36:58 +00:00
Nick O'Leary
299c8293cb
Merge pull request #365 from czaraugust/master
Adding some speed improvments
2019-11-25 11:27:24 +00:00
Nick O'Leary
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
Nikhil Warke
a1cfd5af56
Fix spelling in mqtt_esp8266 example 2018-09-24 00:29:11 +05:30
bwibwi13
c87c9a47b3 Correct maximum size of snprintf (use same size as the buffer ;) 2018-08-19 08:39:39 +02:00
César Augusto
6bc3b76a9b Adding improvments 2017-12-07 12:20:23 -03:00
Kenneth Finnegan
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
Kenneth Finnegan
b85f4dc35c Corrected time data types in esp8266 example
The millis() function returns unsigned longs, not longs.
2017-04-25 20:39:09 -07: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
aa9afc7b44 Fix esp example 2015-09-09 10:32:35 +01:00