以下转换后的arduino代码。
#define BLINKER_WIFI
#include <Blinker.h>
char auth[] = "点灯分配的密钥";
char ssid[] = "你的wifi";
char pswd[] = "wifi密码";
void miotPowerStatedata(const String & data){
if (data == BLINKER_CMD_ON) {
digitalWrite(2,LOW);
BlinkerMIOT.powerState("on");
BlinkerMIOT.print();
} else if (data == BLINKER_CMD_OFF) {
digitalWrite(2,HIGH);
BlinkerMIOT.powerState("off");
BlinkerMIOT.print();
}
}
BlinkerButton Button1("btn-abc");
void Button1_callback(const String & sta