what is code for ADC data on coapp(Single channel)?
what is code for ADC data on coapp(Single channel)?
Did you try implementing this yourself, like I described here?
I have made an example, but I have not tested it (I don't have a IoT setup to test on), but I checked that the example compiles and runs.
You need to copy the ADC driver and HAL from SDK 11.0.0 into your nRF51 IoT SDK directory:
Copy the directory components\drivers_nrf\adc
from SDK 11.0.0 to Nordic\nrf51\components\drivers_nrf
in nRF51 IoT SDK v0.8.0.
Copy the files nrf_adc.c
and nrf_adc.h
from components\drivers_nrf\hal\
in SDK 11.0.0 into directory Nordic\nrf51\components\drivers_nrf\hal
in nRF51 IoT SDK v0.8.0.
Best regards,
Jørgen
i tried ur code and copied the files but i was getting error cannot read nrf_drv_adc.h. i had added the nrf_drv_adc.c. how do i solve it.
Did you create your own project, or did you use the one I provided? If you created your own project, you need to add the path to nrf_drv_adc.h header file to your project. You did copy the entire adc directory from SDK 11 into iot driver folders as I described above?
yes. i tried your project but i get error cannot open board.h file.so i tried to modify the server project which comes with the iot sdk i added the files as u had described and i get error which is present in this linklink text