2 Komitmen 9e9c2ed308 ... c36ab29fe5

Pembuat SHA1 Pesan Tanggal
  Paul Lorenc c36ab29fe5 Merge branch 'master' of notabug.org:paul-lorenc/lora-rose 3 tahun lalu
  Paul Lorenc 770ee8ca01 esp mesh update 3 tahun lalu
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  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();