| 3904 | } |
| 3905 | |
| 3906 | NimBLEAddress 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 |
no outgoing calls
no test coverage detected