Skip to content

Commit d5ae6d4

Browse files
committed
Error for ESP 12E in some versions of Arduino IDE caused by passing NULL as callback in 'DuplexHandler::send' instead of using callback-less version of the function is resolved.
1 parent c6852b3 commit d5ae6d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Grandeur
2-
version=1.0.5
2+
version=1.0.6
33
author=Grandeur Technologies
44
maintainer=Grandeur Technologies <hi@grandeur.tech>
55
sentence=Let your arduinos and ESPs communicate with Grandeur in realtime.

src/DuplexHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ gId DuplexHandler::subscribe(const char *topic, Var payload, Callback updateHand
235235
DEBUG_GRANDEUR("Subscribing to topic:: %s.", topic);
236236

237237
// Sending subscription request.
238-
Message message = send("/topic/subscribe", payload, NULL);
238+
Message message = send("/topic/subscribe", payload);
239239
// Setting update handler.
240240
_subscriptions.on(String(topic), updateHandler);
241241
// Buffer subscription request message regardless of connection/disconnection to handle the case
@@ -251,7 +251,7 @@ void DuplexHandler::unsubscribe(const char *topic, gId eventId, Var payload)
251251
DEBUG_GRANDEUR("Unsubscribing from topic:: %s.", JSON.stringify(payload).c_str());
252252

253253
// Sending unsubscription request to Grandeur. and remove subscription request message from buffer for future reconnection.
254-
send("/topic/unsubscribe", payload, NULL);
254+
send("/topic/unsubscribe", payload);
255255
// Unset the update handler
256256
_subscriptions.off(String(topic));
257257
// Debuffer the subscription packet.

0 commit comments

Comments
 (0)