MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / readSerial

Method readSerial

Arduino/libraries/ST_Anything/Everything.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50#if defined(ENABLE_SERIAL)
51 void Everything::readSerial()
52 {
53 String message;
54 while(Serial.available()>0)
55 {
56 char c=Serial.read();
57 message+=c;
58 delay(10);
59 }
60 if(message.length()>0)
61 {
62 receiveSmartString(message);
63 }
64 }
65#endif
66
67 void Everything::sendStrings()

Callers

nothing calls this directly

Calls 3

receiveSmartStringFunction · 0.85
availableMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected