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

nRF8001 Send data to smartphone every second

Hello,

I've connected the nRF8001 module and a light sensor to a microcontroller.

Actually I can read data only when I send a string from my smartphone but I want to read data from sensor and send it to my smartphone every second without send any string. Any suggestions?

Thanks

Parents
  • Create a tx pipe in nRFgo studio. Use this to send notifications to the phone. Note that the phone will have to enable notifications by writing to the CCCD. Notifications are sent with lib_aci_send_data. make sure you call lib_aci_is_pipe_available first to make sure the pipe is available. In addition it would be a good idea to check that you have available credits (data buffers) using lib_aci_get_nb_available_credits.

Reply
  • Create a tx pipe in nRFgo studio. Use this to send notifications to the phone. Note that the phone will have to enable notifications by writing to the CCCD. Notifications are sent with lib_aci_send_data. make sure you call lib_aci_is_pipe_available first to make sure the pipe is available. In addition it would be a good idea to check that you have available credits (data buffers) using lib_aci_get_nb_available_credits.

Children
Related