SBF parser component for Septentrio binary protocol.
Install via the Palette Manager or cli -> @coremarine/nr-sbf-parser
This component is just a wrap of the library @coremarine/sbf-parser, so please check its info to understand how works the pipes.
The component needs two properties to work:
command
: to tell what do you want.payload
: the data of the command.
The main commands to parser data are:
addData
: To add binary data (payload
) to parser, which must beBuffer
.getData
: To get parsed data (payload
it's not necessary).
There are 4 commands more to setup firmware
and memory
:
At this moment the only Firmware supported (and not completely) is "4.10.1"
setFirmware
: To set the firmware (payload
), which must bestring
.getFirmware
: To get the firmware (payload
it's not neccesary).setMemory
: To set the memory (payload
), which must beboolean
.getMemory
: To get the memory (payload
it's not neccesary).
The output gives the result in the payload
. For getData
it add the firmware
property too, just to for information.