Skip to content

Commit 1a25bb1

Browse files
Adapting Example to use qos enum instead of int
1 parent 99fd112 commit 1a25bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/WiFiAdvancedCallback/WiFiAdvancedCallback.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void setup() {
118118
// subscribe to a topic
119119
// the second parameter sets the QoS of the subscription,
120120
// the the library supports subscribing at QoS 0, 1, or 2
121-
int subscribeQos = 1;
121+
MqttQos subscribeQos = MqttQos1;
122122

123123
mqttClient.subscribe(inTopic, subscribeQos);
124124

0 commit comments

Comments
 (0)