|
@@ -12,8 +12,8 @@ void sendMessage(String msg) {
|
|
|
}
|
|
|
|
|
|
// Needed for painless library
|
|
|
-void receivedCallback( uint32_t from, String &msg ) {
|
|
|
- Serial.printf("startHere: Received from %u msg=%s\n", from, msg.c_str());
|
|
|
+void receivedCallback( uint32_t from, String msg ) {
|
|
|
+ Serial.println(msg);
|
|
|
}
|
|
|
|
|
|
void setup() {
|
|
@@ -27,7 +27,7 @@ void setup() {
|
|
|
void loop() {
|
|
|
String data = "";
|
|
|
if(Serial.available() > 0) {
|
|
|
- data = Serial.readStringUntil('0');
|
|
|
+ data = Serial.readStringUntil('\n');
|
|
|
sendMessage(data);
|
|
|
}
|
|
|
mesh.update();
|