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

Can I get updated BLE characteristic value from nrfcloud without requesting the update from the device's page in the nrfcloud front-end site first?

Whenever I try to get an updated characteristic value from a BLE device using the REST API, I cannot get a new value until I refresh the characteristic's state from the device's page in the front-end site. I am using the Android gateway to interface with an Arduino 101 with BLE in order to get a sound sensor's readings.

I've noticed that when I click on the "refresh" icon on the device's page of nrfcloud and then I send a POST request to discover the device followed by a GET to receive the characteristic value, it sends me the most recent value. But if I don't click on the "refresh" icon (image attached), then the sequence discover POST -> characteristic GET won't send me a new value, it will keep on sending the last one received after clicking the refresh button on the nrfcloud device's page.

Am I doing something wrong? Is this supposed to be the regular behavior? I would like to be able to get updated values by just using the REST api without having to visit the nrfcloud.com and manually clicking the refresh icon.

Thank you,

Leonardo

Related