mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
Serial
This commit is contained in:
@@ -255,6 +255,7 @@ extern void do_mqtt_send_settings_to_udp();
|
|||||||
extern void Web_server_init();
|
extern void Web_server_init();
|
||||||
|
|
||||||
// iot_firmware
|
// iot_firmware
|
||||||
|
extern void loopSerial();
|
||||||
extern void loopCmd();
|
extern void loopCmd();
|
||||||
extern void loopButton();
|
extern void loopButton();
|
||||||
extern void loopScenario();
|
extern void loopScenario();
|
||||||
|
|||||||
@@ -250,6 +250,12 @@ void switch_() {
|
|||||||
but[switch_number.toInt()] = true;
|
but[switch_number.toInt()] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void loopSerial() {
|
||||||
|
if (term) {
|
||||||
|
term->loop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void loopButton() {
|
void loopButton() {
|
||||||
static uint8_t switch_number = 1;
|
static uint8_t switch_number = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ void loop() {
|
|||||||
#ifdef UDP_ENABLED
|
#ifdef UDP_ENABLED
|
||||||
loopUdp();
|
loopUdp();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
loopSerial();
|
||||||
|
|
||||||
ts.update();
|
ts.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user