We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3394b38 commit 9e5d4a3Copy full SHA for 9e5d4a3
examples/monitor/monitor.ino
@@ -43,15 +43,13 @@ void loop() {
43
44
Bridge.notify("signal", 200);
45
46
- Monitor.write("DEBUG: a debug message");
47
-
48
- // read needs to be fixed
49
- // String incoming_msg;
50
- // if (Monitor.read(incoming_msg, 64)) {
51
- // Serial.println(incoming_msg);
52
- // } else {
53
- // Serial.println("ERROR on Monitor.read");
54
- // }
+ Monitor.println("DEBUG: a debug message");
+
+ if (Monitor.available()) {
+ String input = Monitor.readStringUntil('\n'); // Read until newline
+ Monitor.print("You entered: ");
+ Monitor.println(input);
+ }
55
56
Bridge.update();
57
0 commit comments