|
本帖最后由 1195930823 于 2021-7-5 22:57 编辑
void aligenieMode(const String & mode){ BLINKER_LOG("need set mode: ", mode); if (mode == BLINKER_CMD_READING) { // Your mode function } else if (mode == BLINKER_CMD_MOVIE) { // Your mode function } else if (mode == BLINKER_CMD_SLEEP) { // Your mode function } else if (mode == BLINKER_CMD_HOLIDAY) { // Your mode function } else if (mode == BLINKER_CMD_MUSIC) { // Your mode function } else if (mode == BLINKER_CMD_COMMON) { // Your mode function } wsMode = mode; BlinkerAliGenie.mode(mode); BlinkerAliGenie.print();}求助大神 ,这个是灯的模式设置接口,空调的模式设置接口函数是什么
|
|