Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Communication.cpp
- Revision:
- 9:f5981ced0b47
- Parent:
- 8:c40e805eecba
- Child:
- 10:8df624795295
--- a/Communication.cpp Thu Dec 12 21:51:10 2019 +0000
+++ b/Communication.cpp Thu Dec 12 22:28:02 2019 +0000
@@ -83,6 +83,7 @@
{
MQTT::Message &message = md.message;
char* payload = (char*)message.payload;
+ printf("%s\r\n", payload);
int id = payload[0] - 48;
int speed = payload[3] - 48;
if(message.payloadlen > 3) {
@@ -97,8 +98,9 @@
{
MQTT::Message &message = md.message;
char* payload = (char*)message.payload;
+ printf("%s\r\n", payload);
if (strcmp (Communication::mac_address(NULL), payload) != 0) {
- Road::ready(1);
+ Road::road_in_use(NULL).done_flags.set(0xF0);
}
}
