Skip to content

Commit 11fd8d0

Browse files
committed
Have connect(String) make its own object
Instead of calling the other connect() with empty values.
1 parent 2529552 commit 11fd8d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/PubSubClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ bool PubSubClient::_wait_for(MQTT::message_type match_type, uint16_t match_pid)
150150
}
151151

152152
bool PubSubClient::connect(String id) {
153-
return connect(id, "", 0, false, "");
153+
MQTT::Connect conn(id);
154+
return connect(conn);
154155
}
155156

156157
bool PubSubClient::connect(String id, String willTopic, uint8_t willQos, bool willRetain, String willMessage) {

0 commit comments

Comments
 (0)