This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ble_advdata_set within radio_notification

FormerMember
FormerMember

I'm writing an application which updates the ble advert data at run time. I use the radio_notification callback functionality. Inside that function, the code calls the ble_advdata_set function to update the advertisement data. The code runs with no problems.

Inside the same function data is read from the InvenSense driver(gyro and acceleration) using using dmp_read_fifo (inv_mpu_dmp_motion_driver.c) and this is placed in the advertisement data structure. Again no problems.

It works, however being new to this development environment, I'm wandering if I'm breaking any BLE software design principles or best practices.

Parents
  • FormerMember
    0 FormerMember

    Thank you for the reply. I do specify the delay time. However I probably should do a more accurate calculation of the sensor read time. The advice with regards to using the main loop is valuable. I don't need it at the moment, however was concerned about tasks which may take a long time.

Reply
  • FormerMember
    0 FormerMember

    Thank you for the reply. I do specify the delay time. However I probably should do a more accurate calculation of the sensor read time. The advice with regards to using the main loop is valuable. I don't need it at the moment, however was concerned about tasks which may take a long time.

Children
No Data
Related