Skip to main content
TBarn.3
Associate
October 16, 2023
Solved

Can't receive more than 2 datas in BLE

  • October 16, 2023
  • 2 replies
  • 1576 views

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

This topic has been closed for replies.
Best answer by TBarn.3

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

2 replies

TBarn.3
TBarn.3AuthorBest answer
Associate
October 16, 2023

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

SikandarLF
Associate II
October 18, 2023

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