mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
18 lines
427 B
C++
18 lines
427 B
C++
#include "Bus/BusScannerFactory.h"
|
|
#include "Class/NotAsinc.h"
|
|
#include "Global.h"
|
|
|
|
void busInit() {
|
|
myNotAsincActions->add(
|
|
do_BUSSCAN, [&](void*) {
|
|
doBusScan();
|
|
},
|
|
nullptr);
|
|
}
|
|
|
|
void doBusScan() {
|
|
String res = "";
|
|
BusScanner* scanner = BusScannerFactory::get(configSetupJson, busToScan, res);
|
|
scanner->scan();
|
|
jsonWriteStr(configLiveJson, String(scanner->tag()), res);
|
|
} |