本帖最后由 imtzz 于 2021-6-23 00:47 编辑
ERROR: MQTT NOT ALIVE OR MSG LIMIT
请问这个是由于供电不足导致的嘛,因为我用小爱同学控制灯带亮度有时就会报这个错,用APP控制就没问题。并且出现这个报错后,就无法同步更新亮度到APP中了
用外接供电连接WS2812灯带,目前也有这个问题,
麻烦哪位大神帮忙解答一下,Thanks
- void miotBright(const String &bright)
- {
- BLINKER_LOG("----------------------------------------------------------------");
- BLINKER_LOG("need set brightness: ", bright);
- // update ligth strip
- colorW = bright.toInt();
- // prevent the brightness from being too low
- colorW = colorW > 5 ? colorW : 5;
- pixelShow();
- // update app layout
- Slider1.print(colorW);
- WS2812.print(colorR, colorG, colorB, (int)(colorW * 2.55));
- BLINKER_LOG("now set brightness: ", colorW);
- BlinkerMIOT.brightness(colorW);
- BlinkerMIOT.print();
- }
复制代码
|