Arduino-HardwareBLESerial
Arduino-HardwareBLESerial copied to clipboard
Properties of RX and TX characteristics are not set according to Nordic’s UART Service specifications
After experiencing problems connecting Arduino MKR WiFi 1010 to the Serial Bluetooth Terminal application on Android using the SerialPassthrough example, I did some research. It turns out that the properties of characteristics are not set according to specs.
After changes in HardwareBLESerial.h the problem was solved. The changes are:
Instead: BLECharacteristic receiveCharacteristic = BLECharacteristic("6E400002-B5A3-F393-E0A9-E50E24DCCA9E", BLEWriteWithoutResponse, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);
Should be: BLECharacteristic receiveCharacteristic = BLECharacteristic("6E400002-B5A3-F393-E0A9-E50E24DCCA9E", BLEWrite, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);
Instead: BLECharacteristic transmitCharacteristic = BLECharacteristic("6E400003-B5A3-F393-E0A9-E50E24DCCA9E", BLENotify, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);
Should be: BLECharacteristic transmitCharacteristic = BLECharacteristic("6E400003-B5A3-F393-E0A9-E50E24DCCA9E", BLERead | BLENotify, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);
Anyway, thanks for the library.