Downlink command to set access key.
Supported in MTX1 and MTX3 devices.
import * as setAccessKey from 'jooby-codec/mtx1/commands/downlink/setAccessKey.js';const parameters = { accessLevel: 3, key: [ 0, 1, 2, 3, 4, 5, 6, 7, 7, 6, 5, 4, 3, 2, 1, 0 ]};const bytes = setAccessKey.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[9, 17, 3, 0, 1, 2, 3, 4, 5, 6, 7, 7, 6, 5, 4, 3, 2, 1, 0] Copy
import * as setAccessKey from 'jooby-codec/mtx1/commands/downlink/setAccessKey.js';const parameters = { accessLevel: 3, key: [ 0, 1, 2, 3, 4, 5, 6, 7, 7, 6, 5, 4, 3, 2, 1, 0 ]};const bytes = setAccessKey.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[9, 17, 3, 0, 1, 2, 3, 4, 5, 6, 7, 7, 6, 5, 4, 3, 2, 1, 0]
Command format documentation
Downlink command to set access key.
Supported in MTX1 and MTX3 devices.
Example
Command format documentation