Skip to content

Commit d208102

Browse files
committed
Adding a fix for witnessmenow#18 and adding BulkMessages to travis build
1 parent 0d83041 commit d208102

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
- SCRIPT=platformioSingle EXAMPLE=CustomKeyboard BOARDTYPE=ESP8266 BOARD=d1_mini
1414
- SCRIPT=platformioSingle EXAMPLE=FlashledBot BOARDTYPE=ESP8266 BOARD=d1_mini
1515
- SCRIPT=platformioSingle EXAMPLE=UsingWiFiManager BOARDTYPE=ESP8266 BOARD=d1_mini
16+
- SCRIPT=platformioSingle EXAMPLE=BulkMessages BOARDTYPE=ESP8266 BOARD=d1_mini
1617

1718
# This will run all the ESP8266 examples
1819
#- SCRIPT=platformioEsp8266 BOARD=d1_mini

examples/101/FlashledBot/FlashledBot.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void handleNewMessages(int numNewMessages) {
5454
}
5555
}
5656
if (text == "/start") {
57-
String from_name = message.from_name;
57+
String from_name = bot.messages[i].from_name;
5858
if (from_name == "") from_name = "Anonymous";
5959

6060
String welcome = "Welcome, " + from_name + ", from FlashLedBot, your personal Bot on Arduino 101\n";

examples/ESP8266/FlashledBot/FlashledBot.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void handleNewMessages(int numNewMessages) {
5454
}
5555
}
5656
if (text == "/start") {
57-
String from_name = message.from_name;
57+
String from_name = bot.messages[i].from_name;
5858
if (from_name == "") from_name = "Anonymous";
5959

6060
String welcome = "Welcome, " + from_name + ", from FlashLedBot, your personal Bot on ESP8266\n";

0 commit comments

Comments
 (0)