MCPcopy Create free account
hub / github.com/BruceDevices/firmware / readStringUntil

Method readStringUntil

src/modules/ble_api/services/BLESerialService.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68String BLESerialService::readStringUntil(char terminator) {
69 Serial.println("readStringUntil");
70 String result = "";
71 std::string value = serial_char->getValue();
72 for (char c : value) {
73 result += c;
74 if (c == terminator) break;
75 }
76 return result;
77}
78
79size_t BLESerialService::println(const uint32_t n) {
80 String s = String(n);

Callers 15

loadKeyFunction · 0.45
key_inputFunction · 0.45
loadMessagesFunction · 0.45
txIrFileFunction · 0.45
chooseCmdIrFileFunction · 0.45
loadFacesAndNamesFunction · 0.45
get_userMethod · 0.45
loadAlertMACsMethod · 0.45
loadFromSDMethod · 0.45
loadCustomHtmlMethod · 0.45
readNextEntryMethod · 0.45
loadPortalTemplatesFunction · 0.45

Calls 1

printlnMethod · 0.45

Tested by

no test coverage detected