I'm having trouble getting the sketch to work BLEUART Example on Adafruit Feather nRF52832.
Used latest version Arduino 1.8.18 for windows and Adafruit nRF52 1.3.0.
Also I updated the bootloader on the board and compile and upload the sketch Peripheral bleuart.
Additionally, a callback procedures has been added: setRxCallback and setNotifyCallback.
The connection succeeds, but no information exchange between the phone and the nRF52.
When trying to send a message from the phone to the module, a debug message is displayed: BLE_GATTS_EVT_WRITE : Conn Handle = 0
Please help to understand the problem.
Serial log
Code: Select all
--------- SoftDevice Config ---------
Max UUID128 : 10
ATTR Table Size : 3072
Service Changed : 1
Peripheral Connect Setting
- Max MTU : 247
- Event Length : 100
- HVN Queue Size : 3
- WrCmd Queue Size: 1
--------- BLE Settings ---------
Name : Feather nRF52832
Max Connections : Peripheral = 1, Central = 0
Address : D9:B4:53:CB:F7:FD (Static)
TX Power : 4 dBm
Conn Intervals : min = 20.00 ms, max = 30.00 ms
Conn Timeout : 2000 ms
Peripheral Paired Devices:
[BLE ] BLE_GAP_EVT_CONNECTED : Conn Handle = 0
[GAP ] MAC = 69:1C:7D:2E:78:D4, Type = 2, Resolved = 0
[GAP ] Conn Interval = 30.00 ms, Latency = 0, Supervisor Timeout = 720 ms
BLE ] BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP : Conn Handle = 0
Connected to iPhone
[BLE ] BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST : Conn Handle = 0
[GAP ] ATT MTU is changed to 185
[BLE ] BLE_GATTS_EVT_WRITE : Conn Handle = 0