Easyiot server on Raspberry pi and esp01 DHT22 withnout arduino

4 months 19 hours ago #3951 by Yenc
Hi how to connect ESP01 with DHT22 to a local server?

I tried iot-playground.com/blog/2-uncategorised/...-and-humidity-sensor , but it always ends with an error

Please Log in or Create an account to join the conversation.

4 months 19 hours ago #3952 by EasyIoT
DHT22: pin 1 - VCC, pin 4 - GND, pin 2 - to ESP8266.It depends which ESP you use. In program example it uses ESP8266 digital pin 2.

Please Log in or Create an account to join the conversation.

4 months 19 hours ago #3953 by Yenc
yes, I have the same. I use 8266
The bug will be in the program

Error is:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Vývojová deska: "Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\Roman\Documents\Arduino\libraries\Esp8266EasyIoT\Esp8266EasyIoT.cpp: In member function 'void Esp8266EasyIoT::begin(void (*)(const Esp8266EasyIoTMsg&), int, Stream*, Stream*)':

C:\Users\Roman\Documents\Arduino\libraries\Esp8266EasyIoT\Esp8266EasyIoT.cpp:60:84: error: 'eeprom_read_block' was not declared in this scope

eeprom_read_block((void*)&_nodeId, (void*)EEPROM_NODE_ID_ADDRESS, sizeof(uint16_t));

^

C:\Users\Roman\Documents\Arduino\libraries\Esp8266EasyIoT\Esp8266EasyIoT.cpp: In member function 'bool Esp8266EasyIoT::process()':

C:\Users\Roman\Documents\Arduino\libraries\Esp8266EasyIoT\Esp8266EasyIoT.cpp:233:92: error: 'eeprom_write_block' was not declared in this scope

eeprom_write_block((void*)&_nodeId, (void*)EEPROM_NODE_ID_ADDRESS, sizeof(uint16_t));

^

exit status 1
Nastala chyba při kompilaci u desky Generic ESP8266 Module.

Please Log in or Create an account to join the conversation.

4 months 19 hours ago #3954 by Yenc
this program is with arduino, this program is with arduino, can not be caused by that? I need without arduino :(

Please Log in or Create an account to join the conversation.

3 months 4 weeks ago #3962 by EasyIoT

Please Log in or Create an account to join the conversation.

Time to create page: 0.135 seconds