Take json string from ESP8266WiFi, and save it as a string variable in NodeJS to write a CSV file
问题 I want to take a JSON string of DHT22 sensor value (temperature and humidity) from this ESP8266WiFi through WiFi. #include <DHT.h> //library DHT.h #include <ESP8266WiFi.h> #define DHTPIN 14 // GPIO14 #define DHTTYPE DHT22 // DHT 22 (AM2302) DHT dht(DHTPIN, DHTTYPE, 15); const char* ssid = "myhotspot"; const char* password = "mypassword"; WiFiServer server(80); void setup() { Serial.begin(115200); dht.begin(); Serial.println(); Serial.print("Wifi connecting to "); Serial.println( ssid ); WiFi