Skip to content

Commit f436eed

Browse files
authored
Fixing sendTelegramMessage method (hopefully)
1 parent 668bc45 commit f436eed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PushNotificaitonDemo.ino

+6-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,12 @@ void triggerIftttEvent() {
113113
}
114114

115115
void sendTelegramMessage() {
116-
String message = "SSID: " + ssid + "\n"
117-
message = message + "IP: " + ipAddress + "\n"
116+
String message = "SSID: ";
117+
message.concat(ssid);
118+
message.concat("\n");
119+
message.concat("IP: ");
120+
message.concat(ipAddress);
121+
message.concat("\n");
118122
if(bot.sendMessage(CHAT_ID, message, "Markdown")){
119123
Serial.println("TELEGRAM Successfully sent");
120124
}

0 commit comments

Comments
 (0)