Uplink command to get the information about serial port settings.
import * as getSerialPort from 'jooby-codec/obis-observer/commands/uplink/getSerialPort.js';// response to getSerialPortconst bytes = [0x07, 0x05, 0x08, 0x01];// decoded payloadconst parameters = getSerialPort.fromBytes(bytes);console.log(parameters);// output:{ requestId: 7, baudRate: 5, dataBits: 8, parity: parityTypes.ODD} Copy
import * as getSerialPort from 'jooby-codec/obis-observer/commands/uplink/getSerialPort.js';// response to getSerialPortconst bytes = [0x07, 0x05, 0x08, 0x01];// decoded payloadconst parameters = getSerialPort.fromBytes(bytes);console.log(parameters);// output:{ requestId: 7, baudRate: 5, dataBits: 8, parity: parityTypes.ODD}
Command format documentation
Uplink command to get the information about serial port settings.
Example: create command instance from command body hex dump
Command format documentation