|
|
@ -4,8 +4,8 @@ |
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "sdk\components\zprotocols\zcancmder_v2\api\state_index.hpp"
|
|
|
|
#include "sdk/os/zos.hpp"
|
|
|
|
#include "sdk\components\zprotocols\zcancmder_v2\api\state_index.hpp"
|
|
|
|
using namespace iflytop; |
|
|
|
using namespace std; |
|
|
|
|
|
|
@ -13,8 +13,11 @@ using namespace std; |
|
|
|
|
|
|
|
void MicroComputerModuleDeviceScriptCmderPaser::do_dumpconfig(int32_t moduleId) { |
|
|
|
ICmdParserACK ack; |
|
|
|
const char paraV[1][10] = {{0}}; |
|
|
|
sprintf((char*)paraV[0], "%d", moduleId); |
|
|
|
const char paraV_cache[1][10] = {{0}}; |
|
|
|
sprintf((char*)paraV_cache[0], "%ld", moduleId); |
|
|
|
// sprintf((char*)¶V[0][0], "%d", moduleId);
|
|
|
|
|
|
|
|
const char* paraV[1] = {paraV_cache[0]}; |
|
|
|
|
|
|
|
do_dumpconfig(1, (const char**)paraV, &ack); |
|
|
|
} |
|
|
@ -26,10 +29,11 @@ void MicroComputerModuleDeviceScriptCmderPaser::do_dumpconfig(int32_t paramN, co |
|
|
|
uint16_t moduleId = atoi(paraV[0]); |
|
|
|
int32_t configval = 0; |
|
|
|
int32_t ecode = 0; |
|
|
|
ZLOGI(TAG, "dumpconfig %s", paraV[0]); |
|
|
|
|
|
|
|
#define DUMP_CONFIG(tag, configid) \
|
|
|
|
ecode = m_deviceManager->module_get_param(moduleId, configid, &configval); \ |
|
|
|
if (ecode != 0) { \ |
|
|
|
if (ecode == 0) { \ |
|
|
|
ZLOGI(TAG, "%-30s :%d", tag, configval); \ |
|
|
|
} |
|
|
|
|
|
|
|