【点灯科技+esp8266+小爱同学】实现语音控制的米思齐代码和arduino代码

以下转换后的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

原文链接:https://blog.csdn.net/weixin_46254319/article/details/108616778?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165277097916782395321703%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165277097916782395321703&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-6-108616778-null-null.nonecase&utm_term=%E7%A7%91%E6%8A%80

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
文明发言,共建和谐米科社区
提交
头像

昵称

取消
昵称表情图片

    暂无评论内容