I have this loop code (cleaned)
void loop() {
BLEDevice peripheral = BLE.available();
if (peripheral) {
BLE.stopScan();
Serial.print("CPT Found @ ");
Serial.print(peripheral.address());
Serial.println();
if (peripheral.hasManufacturerData()) {
BLE.scanForUuid("fe100);
...
}
BLE.scanForUuid("fe100");
}
delay(1000);
}
what I getin serial
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ c2:71:00:ea:53:f0
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
How to modify that get like
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ c2:71:00:ea:53:f0
CPT Data Found
CPT Found @ f0:b9:4a:3c:88:f4
CPT Data Found
CPT Found @ c2:71:00:ea:53:f0
CPT Data Found
So I dont want to get 1-10 one sensor and then 1 other, need just 1 -1 cycle if possible?