@@ -44,6 +44,7 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex);
|
||||
class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
||||
void onResult(BLEAdvertisedDevice advertisedDevice) {
|
||||
// TODO: switching of does not work because this function is only triggered when new devices are detected, ergo it will always be stuck with the last device
|
||||
// the decrementing in line 58 needs to be moved to a seperate timebased function
|
||||
String addr = advertisedDevice.getAddress().toString();
|
||||
String color = String(addr.substring(9,11)+addr.substring(12,14)+addr.substring(15,17));
|
||||
color.toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user