@@ -44,6 +44,7 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex);
|
|||||||
class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
||||||
void onResult(BLEAdvertisedDevice advertisedDevice) {
|
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
|
// 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 addr = advertisedDevice.getAddress().toString();
|
||||||
String color = String(addr.substring(9,11)+addr.substring(12,14)+addr.substring(15,17));
|
String color = String(addr.substring(9,11)+addr.substring(12,14)+addr.substring(15,17));
|
||||||
color.toUpperCase();
|
color.toUpperCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user