Skip to content

Commit 244e562

Browse files
authored
Update README.md
1 parent e2e5114 commit 244e562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void onMessage(MQTTClientCallbackSimple);
133133
// Callback signature: void messageReceived(String &topic, String &payload) {}
134134

135135
void onMessageAdvanced(MQTTClientCallbackAdvanced);
136-
// Callback signature: void messageReceived(MQTTClient *client, char[] topic, char payload[], int payload_length) {}
136+
// Callback signature: void messageReceived(MQTTClient *client, char topic[], char payload[], int payload_length) {}
137137
```
138138
139139
- The set callback is mostly called during a call to `loop()` but may also be called during a call to `subscribe()`, `unsubscribe()` or `publish() // QoS > 0` if messages have been received before receiving the required acknowledgement. Therefore, it is strongly recommended to not call `subscribe()`, `unsubscribe()` or `publish() // QoS > 0` directly in the callback.

0 commit comments

Comments
 (0)