2 Commits 9e9c2ed308 ... c36ab29fe5

Author SHA1 Message Date
  Paul Lorenc c36ab29fe5 Merge branch 'master' of notabug.org:paul-lorenc/lora-rose 3 years ago
  Paul Lorenc 770ee8ca01 esp mesh update 3 years ago
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rose-device/esp32/esp32.ino

+ 3 - 3
rose-device/esp32/esp32.ino

@@ -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();