205 Commits

Author SHA1 Message Date
Nick O'Leary
a69b18a4cb
Merge pull request #518 from ivankravets/patch-3
Declare support for ESP32
2020-05-20 01:37:47 +01:00
Nick O'Leary
24510271ff Add setSocketTimeout function 2020-05-20 01:33:31 +01:00
Nick O'Leary
77c4e445ea Add setKeepAlive function and tests 2020-05-20 01:18:02 +01:00
Nick O'Leary
64e981190b Merge branch 'master' into pr_282 2020-05-20 00:49:38 +01:00
Nick O'Leary
baad92dd0c Fix merge error with strnlen 2020-05-09 23:20:44 +01:00
Nick O'Leary
aca970d2d4
Merge pull request #655 from abderraouf-adjal/strnlen-patch-1
Using strnlen() instead of strlen()
2020-05-09 22:30:23 +01:00
Nick O'Leary
98098ede85
Merge branch 'master' into strnlen-patch-1 2020-05-09 22:29:59 +01:00
Nick O'Leary
289b64ce89
Merge pull request #693 from leojz/master
declare wifi mode prior to connect
2020-05-09 22:21:53 +01:00
Nick O'Leary
25977bef8a
Merge pull request #727 from sn0kerbuzz/fix-subscribe-empty-topic
Added check to prevent subscribe/unsubscribe to empty topics
2020-05-09 22:19:35 +01:00
Andrei Balasescu
6099ee028f Added check to prevent subscribe/unsubscribe to empty topics 2020-04-12 01:20:08 +03:00
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
7dd2ff90a9
Merge pull request #279 from PhirePhly/esp8266_example_fixes
ESP8266 example fixes
2019-11-25 11:37:11 +00:00
Nick O'Leary
d64528b31b
Merge branch 'master' into esp8266_example_fixes 2019-11-25 11:36:58 +00:00
Nick O'Leary
cff1fc7bdd
Merge pull request #568 from turgu1/patch-1
Allow streaming of large messages
2019-11-25 11:34:25 +00:00
Nick O'Leary
8a5b51803d
Merge pull request #600 from sensidev/master
Fix publish_P return value
2019-11-25 11:32:18 +00:00
Nick O'Leary
1f4011142b
Merge pull request #528 from lexszero/patch-1
Fix publish() when payload == NULL
2019-11-25 11:29:38 +00:00
Nick O'Leary
7cad688df3
Merge pull request #363 from eykamp/documentation_update
Updated documentation
2019-11-25 11:28:19 +00:00
Nick O'Leary
b1cb57208c
Merge pull request #361 from eykamp/comments
Add some comments
2019-11-25 11:28:00 +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
2b83aa0804
Merge pull request #571 from kevinresol/patch-1
Support pre-connected Client
2019-11-25 11:21:09 +00:00
Abderraouf Adjal
f13ad2af3b
PubSubClient.cpp: Using strnlen() 2019-08-22 17:19:38 +01:00
Abderraouf Adjal
719b90eafd
PubSubClient.h: Using strnlen() 2019-08-22 17:14:02 +01:00
Nick O'Leary
d2ff771f4a
Merge pull request #618 from Brandon2255p/patch-1
Removed an unused variable
2019-05-22 14:58:57 +01:00
Brandon Piner
bc65fe5244
Removed an unused variable 2019-05-09 22:10:56 +02:00
lucian
1b9f52b1fc Fix publish_P return value 2019-04-07 22:19:47 +03:00
Kevin Leung
a4f7821a70
Support pre-connected Client 2019-02-04 00:07:05 +08:00
Guy Turcotte
b25040a0d7
Update receive_spec.cpp 2019-01-29 09:05:26 -05:00
Guy Turcotte
7d6e409b59
Update receive_spec.cpp 2019-01-29 08:59:35 -05:00
Guy Turcotte
e7d9688ca5
Update receive_spec.cpp 2019-01-29 08:43:30 -05:00
Guy Turcotte
373c7d3569
Update PubSubClient.h 2019-01-28 18:47:18 -05:00
Guy Turcotte
b6239823fb
Allow streaming of large messages
These changes are required to allow for the transmission of large messages through a connected stream. The changes do not have an impact on the class interface and habitual behavior. In particular, it will enable the use of OTA through a stream hooked through the setStream() class method. I've designed such a stream to demonstrate the functionality: https://github.com/turgu1/mqtt_ota_example.git

Guy
2019-01-28 18:02:37 -05:00
Alex Ignatov
2dca84a776
Fix publish() when payload == NULL
Messages with empty payload are completely valid and are actually useful (e.g., to delete retained value).
This adds a check before calling `strlen()` to prevent crash when using shortcut methods taking `const char*`
2018-11-21 03:09:08 +02:00
Ivan Kravets
3f34227911
Declare support for ESP32 2018-11-06 13:34:26 +02:00
Nick O'Leary
26ce89fa47 Update for 2.7 v2.7 2018-11-02 11:42:44 +00:00
Nick O'Leary
a29d0c3d72
Merge pull request #336 from jaecktec/master
Enable ESP32 to use PubSubClient (make MQTT_CALLBACK_SIGNATURE functional)
2018-11-02 01:07:40 +00:00
Nick O'Leary
fa3c4362ea
Merge branch 'master' into master 2018-11-02 01:07:33 +00:00
Nick O'Leary
b381728998 Add yield to mock test framework 2018-11-02 01:05:02 +00:00
Nick O'Leary
2bcd9b074a
Merge pull request #472 from apicquot/master
Add yield to resolve connection failures
2018-11-02 01:01:44 +00:00
Nick O'Leary
2ed03ad522
Merge pull request #362 from eykamp/new_sig
Create new signature to permit cleaner user code
2018-11-02 00:53:02 +00:00
Nick O'Leary
2d053d2df0 Add buffer overflow protection to connect
Closes #492
2018-11-02 00:50:52 +00:00
Nick O'Leary
ee30733e24 Fixup bad revert of 500 2018-11-02 00:12:44 +00:00
Nick O'Leary
4daba0ae5c Fix remaining length protection 2018-11-02 00:06:32 +00:00
Nick O'Leary
af860133e8 Merge branch 'pr_500' 2018-11-01 23:47:15 +00:00
Nick O'Leary
a0f09681f5 Add separate connect function for clean session + test 2018-11-01 23:46:09 +00:00
Nick O'Leary
05a601cc55
Merge pull request #512 from knolleary/revert-500-master
Revert "Added support of CleanSession flag during connect"
2018-11-01 23:35:56 +00:00
Nick O'Leary
3637cbec69
Revert "Added support of CleanSession flag during connect" 2018-11-01 23:35:31 +00:00
Nick O'Leary
b1bdbb7aaf
Merge pull request #500 from maxim-kukushkin/master
Added support of CleanSession flag during connect
2018-11-01 23:33:51 +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
Nick O'Leary
b5f90b679b
Merge pull request #495 from flok99/patch-1
Update PubSubClient.cpp
2018-11-01 23:28:22 +00:00
Nick O'Leary
4ecd32ec08 Fix up CI tests 2018-11-01 23:25:04 +00:00