npm i @psdk/frame-father
- Add your custom command extend
PSDK
- Add your custom device extend
ConnectedDevice
const command = Commander.make()
.pushText('TEXT COMMAND')
.pushBinary(new Uint8Array([0x00, 0x01]))
.pushClause(CommandClause.text('ANOTHER TEXT COMMAND'))
.command();
const hex = command.hex(HexOutput.formatWithMaxLength(8));
console.log(hex);