This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can i use sd_ble_gatts_hvx function in freertos custom thread?

the priority of my custom thread is lowest priority. but it's not possible to call hvx function.

in ble_app_hrs_freertos example,

a sd_ble_gatts_hvx function is called in timer service routine context.

that's ok. because interrupt service routine.

i know that a interupt servie routine context same to main in freertos.

So, is it possible to only call a sd_ble_gatts_hvx function in main context or interrupt context????

if it is not, please show me example.

Related