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

sd_app_event_wait()

Sir

about the

while(1)

{

sd_app_event_wait(); //stay here until a interrupt or connection occurs...

}

During the time that there is not a interrupt and no connections (i am stopped on sd_app_event_wait()), i want to broadcast a updated data (temperature and humidity that i am getting from a BME280 sensor). How can i do that, update the broacast data when stay stopped on sd_app_event_wait() ?

Thank you!

I am using bleperipheral lib to arduino!

Thanks!