MicroPython: v1.16 on (GNU 10.2.0 MinSizeRel) Ready to download this file,please wait!Įxec(open('PIco-ESP8266-dht11.py').read(),globals()) Send_AT_Cmd('AT CIPCLOSE=' connection_id '\r\n') # once file sent, close connectionĪfter Downloading the PIco-ESP8266.py to the Pico board we need to AT commands starts executing sequentially to configure the ESP-01 board as webserver. The response each AT commands and DHT sensor readings for temperature and humidity will get printed on the Python shell window. Uart0.write('Interfacing of ESP8266 WiFi Module with Raspberry Pi Pico' '\r\n') Uart0.write('Raspberry Pi Pico-ESP-01-ESP8266- DHT11-Weather Station' '\r\n') Print("MicroPython: \t" uos.uname())ĭef Connect_WiFi(cmd, uart=uart0, timeout=3000):ĭef Send_AT_Cmd(cmd, uart=uart0, timeout=3000):ĭef Wait_ESP_Rsp(uart=uart0, timeout=3000): Recv_buf="" # receive buffer global variable The resulting 5 bytes in the buffer will be:īuffer.append(binary > shift * 8
0 Comments
Leave a Reply. |