Open wilba84 opened 3 years ago
Hi, Has anybody been able to get any examples working with weathercloud? I only have below to go off (written for esp8266 library) ` const int httpPort = 80; const char* host = "http://api.weathercloud.net";
void weathercloud() { { if (!client.connect(host, httpPort)) { Serial.println("connection failed"); return; } int temp = 12; client.print("GET /set/wid/39dd3da8e5a13c9f/key/aef53258d7e2a84f4399a4fadaf641dd/temp/"); client.print(temp*10); client.println("/ HTTP/1.1"); client.println("Host: api.weathercloud.net"); client.println("Connection: close"); client.println(); } client.flush(); client.stop(); delay(1000); Serial.println(""); }`
I'm not familiar with WeatherCloud.
Hi, Has anybody been able to get any examples working with weathercloud? I only have below to go off (written for esp8266 library) ` const int httpPort = 80; const char* host = "http://api.weathercloud.net";
void weathercloud() { { if (!client.connect(host, httpPort)) { Serial.println("connection failed"); return; } int temp = 12; client.print("GET /set/wid/39dd3da8e5a13c9f/key/aef53258d7e2a84f4399a4fadaf641dd/temp/"); client.print(temp*10); client.println("/ HTTP/1.1"); client.println("Host: api.weathercloud.net"); client.println("Connection: close"); client.println(); } client.flush(); client.stop(); delay(1000); Serial.println(""); }`