vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.93k stars 715 forks source link

WeatherCloud #436

Open wilba84 opened 3 years ago

wilba84 commented 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(""); }`

SRGDamia1 commented 3 years ago

I'm not familiar with WeatherCloud.