Skip to content

Commit ffafb20

Browse files
author
lorenzo
committed
removed debug prints
1 parent f6af0a6 commit ffafb20

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

ArduinoCloudThing.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ boolean ArduinoCloudThing::connect() {
3131
options.will.topicName.cstring = (char*)statusTopic;
3232
options.will.message.cstring = (char*)OFFLINE_STATUS_PAYLOAD;
3333
options.will.retained = 0x1;
34-
Serial.println("connected");
3534

36-
if (client->connect(options) == 0) {
37-
publish(statusTopic, (char*)ONLINE_STATUS_PAYLOAD, strlen(ONLINE_STATUS_PAYLOAD), true);
38-
return true;
39-
}
35+
// if (client->connect(options) == 0) {
36+
// publish(statusTopic, (char*)ONLINE_STATUS_PAYLOAD, strlen(ONLINE_STATUS_PAYLOAD), true);
37+
// return true;
38+
// }
4039

41-
Serial.println("connection failed");
4240
return false;
4341
}
4442

lib/Network.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ int Network::read(unsigned char* buffer, int len, int timeout) {
2121
this->client->setTimeout(timeout);
2222
return this->client->readBytes(buffer, len);
2323
}
24-
2524
int Network::write(unsigned char* buffer, int len, int timeout) {
2625
if(!client->connected()) {
2726
return -1; // return an error
@@ -34,7 +33,6 @@ int Network::write(unsigned char* buffer, int len, int timeout) {
3433
boolean Network::connected() {
3534
return client->connected();
3635
}
37-
3836
int Network::disconnect() {
3937
client->stop();
4038
return 0;

0 commit comments

Comments
 (0)