Skip to content

Commit

Permalink
Add method to set Client*
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jun 26, 2024
1 parent 107090e commit 2976979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MqttClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class MqttClient : public Client {
void onMessage(MessageCallback callback);
#else
inline void setClient(Client& client) { _client = &client; }
inline void setClient(Client* client) { _client = client; }
void onMessage(void(*)(int));
#endif

Expand Down

0 comments on commit 2976979

Please sign in to comment.