|
|
@ -58,7 +58,7 @@ void MicroComputerModuleDeviceScriptCmderPaser::initialize(ICmdParser* cancmder, |
|
|
|
}); |
|
|
|
|
|
|
|
deviceManager->regOnRegValChangeEvent([this](int32_t moduleid, int32_t regindex, int32_t oldval, int32_t toval) { //
|
|
|
|
ZLOGI(TAG, "onRegValChangeEvent(%d,%d,%d->%d)", moduleid, regindex, oldval,toval); |
|
|
|
ZLOGI(TAG, "onRegValChangeEvent(%d,%d,%d->%d)", moduleid, regindex, oldval, toval); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@ -467,9 +467,11 @@ void MicroComputerModuleDeviceScriptCmderPaser::do_wait_for_module(int32_t modul |
|
|
|
|
|
|
|
void MicroComputerModuleDeviceScriptCmderPaser::do_scan_module(int32_t paramN, const char* paraV[], ICmdParserACK* ack) { |
|
|
|
m_deviceManager->for_each_module([this](int32_t id) { //
|
|
|
|
// ZLOGI(TAG, "ping %d", id);
|
|
|
|
int32_t ecode = m_deviceManager->module_ping(id); |
|
|
|
if (ecode == 0) { |
|
|
|
ZLOGI(TAG, "module %d : %s", id, ecode == 0 ? "online" : "offline"); |
|
|
|
} |
|
|
|
}); |
|
|
|
ZLOGI(TAG, "scan module end..."); |
|
|
|
} |