Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_NUS with DHT11(Temperature and Humidity) issue

Hi all,

I am working on Temperature and Humidity(DHT11) with nrf52832, After advertising the Bluetooth  i am calling the DHT11 sensor function in loop, few seconds it is working fine, after sending some data it is not sending data over the BLE_NUS, i am not getting where is the issue, Please suggest me for this.

  • Are you sure that the DHT11 functions you have created is working as intended? You have some while loops inside there that will deadlock your code if the GPIOs are not set to certain values. Note that if you put a breakpoint or halt the CPU in other ways, the softdevice will assert when you continue, and put you in the error handler. Is the code working if you comment out DHT_task_callback() from you main loop?

Related