發表文章

目前顯示的是有「DHT11/DHT12webServer」標籤的文章

DHT11/12網路監測-ESP32

圖片
  DHT11/12網路監測-ESP32 單純實驗DHT11/12參考 - https://esp32-blairan.blogspot.com/2021/07/dht11dht12-esp32.html 先下載伺服器的庫 - ESPAsyncWebServer 完整程式碼如下: #include   <WiFi.h> #include   <ESPAsyncWebServer.h> #include   <Adafruit_Sensor.h> #include   <DHT.h> #include   <DHT_U.h> const   char *  ssid  =  "CTK" ; const   char *  password  =  "ctk674011" ; AsyncWebServer   server ( 80 ); #define   DHTPIN   4       #define   DHTTYPE      DHT11      // DHT 11 sensors_event_t   event ; DHT_Unified   dht ( DHTPIN ,  DHTTYPE ); const   char   indexHtml []  PROGMEM  =  R"===(   <html> <head>   <meta charset="utf-8" />   <meta name="viewport" content="width=device-width, initial-scale=1.0" /> ...