Skip to content

Commit 2976979

Browse files
committed
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

Diff for: src/MqttClient.h

+1
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)