Uplink command to get the OBIS code content from the specific metering device.
import * as getObisContentByIdString from 'jooby-codec/obis-observer/commands/uplink/getObisContentByIdString.js';// response to getObisContentById with string resultconst bytes = [0x79, 0x0c, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79];// decoded payloadconst parameters = getObisContentByIdString.fromBytes(bytes);console.log(parameters);// output:{ requestId: 121, content: 'Total energy'} Copy
import * as getObisContentByIdString from 'jooby-codec/obis-observer/commands/uplink/getObisContentByIdString.js';// response to getObisContentById with string resultconst bytes = [0x79, 0x0c, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79];// decoded payloadconst parameters = getObisContentByIdString.fromBytes(bytes);console.log(parameters);// output:{ requestId: 121, content: 'Total energy'}
Command format documentation
Uplink command to get the OBIS code content from the specific metering device.
Example: create command instance from command body hex dump
Command format documentation