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

how can i read an analog value from p0.1 using copper coap client?

I have set up a 6lowpan test environment and could control the led3 and led4. could u please provide me with a code to read value at p0.01. i want to connect a temperature sensor(TMP36) at this pin and read the value on copper coap using get function.

Parents
  • Hi,

    To read an analog value, you need to use the ADC. Unfortunately, the ADC driver is not included in the release of the IoT SDK for nRF51 (v0.8.0). It should however not be a big job to add the ADC driver from the standard SDK if you need this.

    For information about how to change the CoAP server example to control/read other pins than LED3/4, please see this thread.

    Best regards,

    Jørgen

  • Thanks for your suggestion I will look into it

Reply Children
No Data