aqhome-tool: more work on getdevices.
This commit is contained in:
@@ -174,13 +174,20 @@ int _doGetDevices(GWEN_DB_NODE *dbArgs)
|
||||
ts64=AQH_GetDevicesResponseIpcMsg_GetTimestamp(msg);
|
||||
ts=GWEN_Timestamp_fromInt64(ts64); /* TODO: fix timestamp */
|
||||
|
||||
fprintf(stdout, "- node: %02x (uid=%04x, firmware type=%02x, firmware version=%d.%d, timeStamp: %016lx)\n",
|
||||
fprintf(stdout, "- node: %02x (uid=%04x, fw type=%02x, fw version=%d.%d, timeStamp: %016lx"
|
||||
", pkg out: %d, pkg in: %d, collisions: %d, busy: %d, crc: %d, io: %d)\n",
|
||||
AQH_GetDevicesResponseIpcMsg_GetBusAddress(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetUid(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetFirmwareType(msg),
|
||||
(fwVersion>>8) & 0xff,
|
||||
fwVersion & 0xff,
|
||||
(unsigned long int)ts64);
|
||||
(unsigned long int)ts64,
|
||||
AQH_GetDevicesResponseIpcMsg_GetPkgOut(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetPkgIn(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetCollisions(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetBusy(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetCrcErrors(msg),
|
||||
AQH_GetDevicesResponseIpcMsg_GetIoErrors(msg));
|
||||
GWEN_Timestamp_free(ts);
|
||||
GWEN_Msg_free(msg);
|
||||
if (flags & AQH_MSGIPC_GETDEVICES_RSP_FLAGS_LAST) {
|
||||
|
||||
Reference in New Issue
Block a user