mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +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();
|
||||
|
||||
// iot_firmware
|
||||
extern void loopSerial();
|
||||
extern void loopCmd();
|
||||
extern void loopButton();
|
||||
extern void loopScenario();
|
||||
|
||||
@@ -250,6 +250,12 @@ void switch_() {
|
||||
but[switch_number.toInt()] = true;
|
||||
}
|
||||
|
||||
void loopSerial() {
|
||||
if (term) {
|
||||
term->loop();
|
||||
}
|
||||
}
|
||||
|
||||
void loopButton() {
|
||||
static uint8_t switch_number = 1;
|
||||
|
||||
|
||||
@@ -93,6 +93,9 @@ void loop() {
|
||||
#ifdef UDP_ENABLED
|
||||
loopUdp();
|
||||
#endif
|
||||
|
||||
loopSerial();
|
||||
|
||||
ts.update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user