cancel
Showing results for 
Search instead for 
Did you mean: 

STM32wb55rg does not update aci_hal_get_link_status despite notification

PierreL
Associate II

Hello

For now, I have a Bluetooth application that sends data through a custom app with notify.

I see my device on the ST bluetooth tool box with my data.

However, to update my application, I want to send data only if I am correctly connected to my phone to not miss data.

I tried to work with aci_hal_get_link_status() function but the status stay at 0.

 

Here's a snippet of my code :

 

uint8_t link_status = 0;
uint16_t link_connection_handle = 0;
aci_hal_get_link_status(&link_status,&link_connection_handle);
main_CreateBufferBle("color:red\n size:1.5\n length:100 \n",0,count);
Custom_APP_Send_Data(0);

 

 So I do see the data on my phone but the link status and link connection handle stay at 0.

 

I haven't found an example of using this function so I might use it wrongly.

Kind regards,

Pierre Lobert

0 REPLIES 0