The use of the ESP8266 in the world of IoT

User avatar
By berkutta
#48985 Hi,

Working currently on a DS18B20 implementation on the Espressif SDK. Have the issues that I don't get consistent values. I think the issue is that my things wouldn't get executed in the correct time. Reading the DS18B20 is timing critictal.

So somebody knows how I can temporarily disable everything other? Like the nointerrupt on Arduino?

Benjamin
User avatar
By xtal
#48986 I've used the DS18b20 once and had no issues. You may be using an old library for the DS18b20..
You should show your includes and code for others to see and possibly help :mrgreen:
User avatar
By berkutta
#48997 Got it working now. Have swapped accidentally the upper 4 bytes with each other, so I got non consistent false readings. Fixed that and it works now. Have added additionaly a interrupt deactivation with those commands:

Code: Select allets_intr_lock();
and
Code: Select allets_intr_unlock();