Uplink command to get device type.
The corresponding downlink command: getDeviceType.
getDeviceType
Supported in MTX1 and MTX3 devices.
import * as getDeviceType from 'jooby-codec/mtx1/commands/uplink/getDeviceType.js'// type 1const bytes = [0x00, 0x11, 0x21, 0x49, 0x21, 0xB6, 0x81, 0xC0, 0x00];// decoded payloadconst parameters = getDeviceType.fromBytes(bytes);console.log(parameters);// output:{ type: 'MTX 1A10.DG.2L5-LD4', revision: 0x0b, meterType: 0}; Copy
import * as getDeviceType from 'jooby-codec/mtx1/commands/uplink/getDeviceType.js'// type 1const bytes = [0x00, 0x11, 0x21, 0x49, 0x21, 0xB6, 0x81, 0xC0, 0x00];// decoded payloadconst parameters = getDeviceType.fromBytes(bytes);console.log(parameters);// output:{ type: 'MTX 1A10.DG.2L5-LD4', revision: 0x0b, meterType: 0};
Command format documentation
Uplink command to get device type.
The corresponding downlink command:
getDeviceType
.Supported in MTX1 and MTX3 devices.
Example
Command format documentation