Skip to content

Commit 2750908

Browse files
fixup! defining MqttClient classes
1 parent e6846ec commit 2750908

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/net/MqttClient.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class MqttClientInterface: public arduino::ClientConnect{
4949
virtual void poll() = 0;
5050
virtual error_t ping() = 0;
5151

52-
// TODO make this pure virtual?
5352
virtual void setReceiveCallback(MqttReceiveCallback cbk) = 0;
5453

5554
// nullptr means generate it randomly
@@ -58,7 +57,7 @@ class MqttClientInterface: public arduino::ClientConnect{
5857
// password may be null, if username is null password won't be used
5958
virtual void setAuth(const char* username, const char* password=nullptr) = 0;
6059

61-
virtual void setWill(Topic willTopic, const uint8_t* will_message, size_t will_size) = 0;
60+
virtual void setWill(Topic willTopic, const uint8_t* will_message, size_t will_size, MqttQos qos=QosDefault) = 0;
6261

6362
// TODO MQTT 5.0 stuff
6463
};

0 commit comments

Comments
 (0)