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

Rather than reporting the status of the LED, how do I configure the Light sample to publish the ADC's readings?

I see on the forums that this is done through access_model_publish, but I cannot find where that is called in the Light sample.

Parents Reply
  • Hi Jala, 
    Sorry I was thinking that you were asking about mesh example in nRF5 SDK not nRF Connect SDK (access_model_publish() is a function in nRF5 SDK) 

    In light example the publication of the sever model is sent in 

    led_work() in model_handler.c . You can find model_send() is called in the function. 
    You would need to define your own proprietary model to send your ADC data. 

    I would suggest to have a look at the chat example as it's a proprietary. It's client only. So you need to refer to the light example to know how to define a server. 
Children
No Data
Related