cancel
Showing results for 
Search instead for 
Did you mean: 

Can't receive more than 2 datas in BLE

TBarn.3
Associate II

I'm currently using the STM32 board B-U585I-IOT2A. The BLE module is working as BLE Server, and I want to transmit data.

So, using BLE_NOTIF_VAL as explained here (https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_AT_Server), I can send 1 or 2 values maximum, and it's working, I can get back these values on the app ST BLE Toolbox.

But, if I want to send 3 uint8_t values at the same time, it's not working anymore and any values are sent. And I would like to understand why and how to solve it. Because the buffer that the STM32 board can send to the Client is 64 uint8_t values. 

For exemple, I can send data through BLE_NOTIF_VAL1, and I receive x01x02. But, with BLE_NOTIF_VAL2, I receive x00x00. 

 

Thank you for your help

1 ACCEPTED SOLUTION

Accepted Solutions
TBarn.3
Associate II

Finally, I found the mistake, it's about the lenght of my characteristics. 

View solution in original post

2 REPLIES 2
TBarn.3
Associate II

Finally, I found the mistake, it's about the lenght of my characteristics. 

SikandarLF
Associate III

Its the length of the characteristics when setting the BLE in stmcubemx under characteristics