Closed Gibbz closed 4 months ago
Ive got the uuid's kind of working... Ok enough to get a connection anyway... However my next issue is getting the notifications enabled.
For the nrf toolbox terminal to work, it requires that the notifications are enabled. In the log its reports that
write to characteristic - missing property error: [UUID for rx]
How do i set the value, and notify back of the change? In my c++ version I had the following, which i need to replicate.
if (pCharacteristic == uart_rx_characteristic) {
// notify data recieved
uart_tx_characteristic->notify(data, size);
}
Link to my source: https://github.com/bit-shift-io/bike-aid/blob/main/bike-aid-nrf-rs/src/ble/service_uart.rs https://github.com/bit-shift-io/bike-aid/blob/main/bike-aid-nrf-rs/src/ble/server.rs https://github.com/bit-shift-io/bike-aid/blob/main/bike-aid-nrf-rs/src/tasks/bluetooth.rs
All good! I had my rx and tx mixed up!!
Im trying to setup nrf UART over BLE. Ive previously done it on the esp32 in cpp. But im struggling with the uuid's on the softdevice.
Link here: https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00072.html
The UART service id's, which also needs to be given to the advertising data:
Is there an easy way to convert the string uuid's to [u8, 16] arrays for the advertising builder?
Edit, also tried:
but i get the error: