大佬们:小爱音响添加点灯科技里的灯,语音控制时提示“要操作的设备好像出问题了,等一会再试”这个怎么处理?

想做一个小爱同学+ESP8266+blinker点灯,但是失败了。

在灯光技术上,它可以正常操作,开关可以开关,灯开关可以用语言正常控制,小爱立体声也可以正常添加,但语音控制会提示:要操作的设备似乎出了问题。稍后再试“如何处理这件事?请给我一些建议,谢谢!

[En]

In lighting technology, it can be operated normally, the switch can be switched on and off, and the light switch can be controlled normally with language, and Xiaoai stereo can also be added normally, but the voice control prompts that “there seems to be something wrong with the equipment to be operated.” try again later “how to deal with this? Please give me some advice, thank you!

以下是在互联网上搜索的代码:

[En]

The following is the code searched on the Internet:

#define BLINKER_PRINT Serial
#define BLINKER_WIFI
#define BLINKER_MIOT_LIGHT
#include

char auth[] = "631e7e5e5401";
char ssid[] = "CU_KdsZ";
char pswd[] = "6gqzybs9";

int GPIO=0;

#define BUTTON_1 "btn_led"

BlinkerButton Button1("btn_led");

void button1_callback(const String & state){
    BLINKER_LOG("get button state: ", state);
    digitalWrite(GPIO,!digitalRead(GPIO));
    Blinker.vibrate();
}

void miotPowerState(const String & state)
{
    BLINKER_LOG("need set power state: ",state);

    if (state == BLINKER_CMD_OFF) {
        digitalWrite(GPIO, LOW);
        BlinkerMIOT.powerState("off");
        BlinkerMIOT.print();
    }
    else if (state == BLINKER_CMD_ON) {
        digitalWrite(GPIO, HIGH);
        BlinkerMIOT.powerState("on");
        BlinkerMIOT.print();
    }
}

void setup() {
    Serial.begin(115200);
    pinMode(GPIO,OUTPUT);
    digitalWrite(GPIO,HIGH);
    Blinker.begin(auth, ssid, pswd);
    Button1.attach(button1_callback);
    BlinkerMIOT.attachPowerState(miotPowerState);
}

void loop()
{
    Blinker.run();
}

Original: https://blog.csdn.net/ZGS_CSDN_YH/article/details/109040897
Author:
Title: 大佬们:小爱音响添加点灯科技里的灯,语音控制时提示“要操作的设备好像出问题了,等一会再试”这个怎么处理?

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/526359/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球