ArduinoBLE
ArduinoBLE copied to clipboard
ArduinoBLE library for Arduino
Hello, it would be nice if you can support Adafruit nrf52840 express feater, too Marc
Please add API to control the built-in RGB which is connected to pins 25,26,27 for Arduino MKR and Arduino WiFi Rev2 Thanks
Peripheral: nano_33_iot (same issue with esp32dev) Central: HP EliteBook 840 G1 with Kubuntu 23.10 When running data transfer by: https://github.com/vovagorodok/ArduinoBleOTA/blob/main/tools/uploader.sh Central doesn't receive ack notification. Peripheral side: https://github.com/vovagorodok/ArduinoBleOTA/blob/2c900594f3b9850dfd17ab0c8df5019fe3efb78c/src/ArduinoBleOtaClass.cpp#L107 Logs: `PCAP`:...
```cpp pClient = BLEDevice::createClient(); pClient->setClientCallbacks(new MyClientCallback()); // 断链时间有点长 if(!pClient->connect(*bleMacAddress,BLE_ADDR_TYPE_PUBLIC)){ Serial.println("connect ERR"); pClient->disconnect(); return false; } ``` During the process of scanning from the ble client to the server and establishing...
Aduino uno R4 wifi connecting via bluetooth to arduino NANO 33 BLE reading/checking characteristic causes huge delays whilst trying to drive stepper motors. I have to read the characteristic in...
## Background Info I am using a `Nano IOT 33`. In this scenario, my Arduino plays a peripheral role. > ⚠️ As you may know, this board does not allow...
``` .pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp: In member function 'virtual void L2CAPSignalingClass::handleSecurityData(uint16_t, uint8_t, uint8_t*)': .pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp:233:21: error: 'X' was not declared in this scope btct.printBytes(X,16); ^ .pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp:235:21: error: 'Y' was not declared in this scope...
In https://github.com/vovagorodok/ArduinoBleOTA/blob/main/src/ArduinoBleOtaClass.cpp: ``` BLECharacteristic txCharacteristic(BLE_OTA_CHARACTERISTIC_UUID_TX, BLERead | BLENotify, BLE_OTA_MAX_ATTR_SIZE); ... txCharacteristic.setValue(data, length); ``` notifies twice about written value. Checked on esp32dev and nano_33_iot
This allows using capturing lambdas for BLE device and characteristic event handlers on Mbed OS-based devices, as required by a recent project of mine: ```cpp for (auto tup : senswarn_chars)...
This PR addresses a bug outlined in #350, where calling `stopScan` does not reset the filters set by `scanByName` etc, so a call to `scan` after will not work as...