附上自己的代码
#include
#include
#include
#define LED 13
#define DevicesID 7067020
char APPkey[] = "wiwZuvj********DmSRRU="; //在这里填写自己的APPKEY
char ssid[] = "xy";
char pass[] = "wifi1234567";
char Host[] = "api.heclouds.com";
int hostIP = 80;
WiFiClient client;
int status = WL_IDLE_STATUS;
void setup()
{
/* add setup code here */
Serial.begin(115200);
while(!Serial)
{
;
}
if (WiFi.status() == WL_NO_SHIELD)
{
Serial.println("WiFi shield not present");
while(true);
}
String fv = WiFi.firmwareVersion();
if (fv != "1.1.0")
{
Serial.println("Please update the fireware");