1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-04-26 00:02:30 +03:00

369 Commits

Author SHA1 Message Date
brentru
28435eaf58 fixes from @ben-willmore on 83af73f4e5 2022-11-14 16:23:51 -05:00
Brent Rubell
9409c6373b
Merge branch 'adafruit:master' into master 2022-11-14 16:07:25 -05:00
Brent Rubell
abe90ec6f6
Update library.properties 2.5.1 2022-11-11 09:56:50 -05:00
Brent Rubell
18af1b6e2a
Merge pull request #216 from ben-willmore/retain-flag
Add support for retain flag when publishing
2022-11-11 09:54:49 -05:00
Ben Willmore
33b62c7a64 Add skip files 2022-11-09 20:36:12 +00:00
Ben Willmore
da5b499307 Add example of retain usage 2022-11-09 20:01:14 +00:00
brentru
96880c03c0 larger buffer for WS 2022-11-02 16:59:00 -04:00
Ben Willmore
3f2b25339e More formatting fixes 2022-11-02 20:24:41 +00:00
Ben Willmore
8b27fdb775 Fix formatting 2022-11-02 20:17:05 +00:00
Ben Willmore
e6ab3a9631 Tidy code 2022-11-02 11:37:01 +00:00
Ben Willmore
d3fdbb2f7c Use function overloading instead of optional arguments 2022-11-02 11:33:32 +00:00
Lucas Jandrew
de5059eb92 Make publishPacket retain flag default to false 2022-11-02 11:18:59 +00:00
Lucas Jandrew
2c667d9a30 Use ternary operator to set retain bit rather than relying on compiler definition of 0/1 2022-11-02 11:18:06 +00:00
Brent Rubell
1e33ece844
Merge pull request #215 from brentru/fix-processUntil
Fix subscription packet callbacks not executing within processPacketsUntil()
2.5.0
2022-11-01 11:33:44 -04:00
brentru
1eb56066ef clang 2022-10-28 16:44:07 -04:00
brentru
52e04bebe9 loren review 2022-10-28 16:32:51 -04:00
brentru
a80db209cd bump lib prop 2022-10-28 14:53:54 -04:00
brentru
30d4af8179 remove debug 2022-10-28 14:53:32 -04:00
brentru
5c00e84d08 add new processSubscriptionPacket func 2022-10-28 13:01:06 -04:00
brentru
0ba089d1e8 fixes processUntil 2022-10-28 12:27:33 -04:00
Brent Rubell
7413e92e77
Merge pull request #213 from adafruit/update-ssl-cert
Update SSL Certificate for ESP8266, add warning
2.4.3
2022-08-15 13:35:40 -04:00
brentru
25662868c5 add cert and warning 2022-08-15 13:18:56 -04:00
Brent Rubell
223d419ebd
Update library.properties 2.4.2 2021-07-12 09:53:23 -04:00
Brent Rubell
37e175dcef
Merge pull request #196 from xdylanm/send_long_packet_fix
Fixed length calculation when payload exceeds 128bytes
2021-07-12 09:53:02 -04:00
Brent Rubell
d466773076
Update library.properties 2.4.1 2021-06-22 13:29:31 -04:00
Brent Rubell
3a319ab695
Merge pull request #195 from rgorosito/fix-loss-subscriptions
Fix: Subscriptions can't be read if arrive when waiting for response of ping or publish
2021-06-22 13:29:11 -04:00
xdylanm
a2bdbacb17 format 2021-05-30 16:16:14 -07:00
xdylanm
b007806ac1 Fixed length calculation when payload exceeds 128bytes 2021-05-30 14:13:57 -07:00
Ricardo Gorosito
ab78b291b2 more c formatting fixing 2021-05-25 13:23:51 -03:00
Ricardo Gorosito
986c1b405c fix c formatting 2021-05-25 13:16:43 -03:00
Ricardo Gorosito
4cb40f87d2 stop loosing messages 2021-05-23 15:52:35 -03:00
Brent Rubell
e524b5f3ae
Merge pull request #194 from brentru/add-kat-public-funct
Add setKeepAliveInterval() setter
2.4.0
2021-05-18 17:04:56 -04:00
brentru
c5cdfc9564 clang format 2021-05-18 16:54:01 -04:00
brentru
86aff92f0b fixup 2021-05-18 16:43:33 -04:00
brentru
a1e64c039e settable keepalive interval 2021-05-18 16:41:26 -04:00
Brent Rubell
ea2fb46de3
Merge pull request #193 from xdylanm/send_rcv_long_packets
Support publishing and receiving large messages.
2.3.0
2021-05-14 12:01:40 -04:00
xdylanm
db003d30d1 Addressing comments from PR #193 with merge from PR#166. Clang-format, version ticked to 2.3.0, replaced duplicate topicOffsetFromLength with packetAdditionalLen. 2021-05-14 08:09:07 -07:00
xdylanm
c782cc454f Merge branch 'master' of https://github.com/adafruit/Adafruit_MQTT_Library into send_rcv_long_packets
Pull in changes from flavio-fernandes
2021-05-14 07:47:38 -07:00
Brent Rubell
ca12d21eb2
Merge pull request #166 from flavio-fernandes/protect.buffer
Adafruit_MQTT::publishPacket: Protect against memory corruption.
2.2.0
2021-05-14 09:22:29 -04:00
xdylanm
93a35d1a3e fix typo 2021-05-12 21:54:08 -07:00
xdylanm
2ea8a0b3fc Support publishing and receiving large messages. Send multiple 250 byte packets (ref PR#113) for larger messages. Correctly identify topic start position for >127byte messages (ref PR#166). Resolves issue #102 2021-05-12 21:31:22 -07:00
Flaviof
ce30d2a146
Merge branch 'master' into protect.buffer 2021-05-12 21:25:20 -04:00
Flavio Fernandes
fff701ee62 Bump to 2.2.0 2021-05-12 21:18:33 -04:00
Brent Rubell
e8922f60a9
Merge pull request #192 from brentru/add-esp32-esp32s2-example
Add usage example for ESP32 SSL/TLS
2021-05-12 17:36:47 -04:00
brentru
1a3ff727a3 add .skip files for 8266/zero, this is an esp32 example! 2021-05-12 17:33:16 -04:00
brentru
2adac525e1 bump version 2021-05-12 17:30:17 -04:00
brentru
813585f72b add example for esp32s2/esp32 2021-05-12 17:26:26 -04:00
Flavio Fernandes
d6f07ed4e4 Adafruit_MQTT::publishPacket: Protect against memory corruption.
Avoid memory corruption from happening when data payload provided
in Adafruit_MQTT::publishPacket is greater than MAXBUFFERSIZE.

In order to do that, a helper function is being added to calculate
how much space is available for the payload after subtracting what
is used as the header.

Pull request https://github.com/adafruit/Adafruit_MQTT_Library/pull/166
Fixes https://github.com/adafruit/Adafruit_MQTT_Library/issues/109
Fixes https://github.com/adafruit/Adafruit_MQTT_Library/issues/122

Signed-off-by: Flavio Fernandes <flavio@flaviof.com>
2021-04-02 12:14:39 -04:00
Brent Rubell
f63a37b6fb
Merge pull request #170 from Fapiko/better-ping-handling
Better ping handling
2.1.0
2020-11-06 10:39:12 -05:00
Lucas Jandrew
f3f5c18c6d Reformatted with clang-format 2020-11-06 10:20:52 -05:00