Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2976979

Browse files
committedJun 26, 2024·
Add method to set Client*
1 parent 107090e commit 2976979

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/MqttClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class MqttClient : public Client {
5050
void onMessage(MessageCallback callback);
5151
#else
5252
inline void setClient(Client& client) { _client = &client; }
53+
inline void setClient(Client* client) { _client = client; }
5354
void onMessage(void(*)(int));
5455
#endif
5556

0 commit comments

Comments
 (0)
Please sign in to comment.