Skip to content

Commit e0a1506

Browse files
TMRh20256dpi
authored andcommitted
minor corrections
1 parent bd807bf commit e0a1506

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MQTTClient.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ void MQTTClient::setHost(IPAddress ipAddr, int port) {
206206
this->port = port;
207207
}
208208

209-
void MQTTClient::setHost(const char hostname[], int port) {
209+
void MQTTClient::setHost(const char _hostname[], int _port) {
210210
// free hostname if set
211211
if (this->hostname != nullptr) {
212212
free((void *)this->hostname);
213213
}
214214

215215
// set hostname and port
216-
this->hostname = strdup(hostname);
217-
this->port = port;
216+
this->hostname = strdup(_hostname);
217+
this->port = _port;
218218
}
219219

220220
void MQTTClient::setWill(const char topic[], const char payload[], bool retained, int qos) {

0 commit comments

Comments
 (0)