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

Function parseAddress

src/modules/ble/BLE_Suite.cpp:3906–3915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3904}
3905
3906NimBLEAddress parseAddress(const String &addressInfo) {
3907 int colonPos = addressInfo.lastIndexOf(':');
3908 if (colonPos == -1) {
3909 std::string addrStr = addressInfo.c_str();
3910 return NimBLEAddress(addrStr, BLE_ADDR_PUBLIC);
3911 }
3912 String mac = addressInfo.substring(0, colonPos);
3913 std::string addrStr = mac.c_str();
3914 return NimBLEAddress(addrStr, BLE_ADDR_PUBLIC);
3915}
3916
3917//=============================================================================
3918// Menu System - with optimized redraw to prevent flicker

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected