Search found 2 matches

by PeterAndersson
Sat Jan 25, 2020 3:21 pm
Forum: ESP32 Arduino
Topic: BLE scan only gets the name of some devices the first scan?
Replies: 2
Views: 7499

BLE scan only gets the name of some devices the first scan?

I have the following code: #include <Arduino.h> #include <BLEDevice.h> #include <BLEAdvertisedDevice.h> static void log(String message) { Serial.println(message); } const char* deviceName = "BLEScanner"; BLEScan* pBLEScan; void setup() { Serial.begin(115200); log("Setup!"); BLEDevice::init(deviceNam...
by PeterAndersson
Mon Jun 03, 2019 9:12 pm
Forum: ESP32 Arduino
Topic: BLE client disconnect causes reboot
Replies: 2
Views: 5765

BLE client disconnect causes reboot

Hi i have the following code #include <BLEDevice.h> #include <BLEAddress.h> void setup() { Serial.begin(115200); // put your setup code here, to run once: BLEDevice::init(""); } static BLEUUID serviceUUID("00001204-0000-1000-8000-00805F9B34FB"); static BLEUUID modeChangeUUID("00001a00-0000-1000-8000...