@digitalshieldfe/hd-transport-webusb
v1.0.1
Published
`@digitalshieldfe/hd-transport-webusb` is a library that implements transport communication by WebUSB.
Readme
@digitalshieldfe/hd-transport-webusb
@digitalshieldfe/hd-transport-webusb is a library that implements transport communication by WebUSB.
What is the purpose
- translate JSON payloads to binary messages using protobuf definitions comprehensible to DigitalShield devices
- chunking and reading chunked messages according to the DigitalShield protocol
- exposing single API for various transport methods:
- Http Transport
- React Native Transport
- WebUSB
- Create and expose typescript definitions based on protobuf definitions.
The short version
In order to be able to use new features of digitalshield-firmware you need to update protobuf definitions.
git submodule update --init --recursiveto initialize git submodules.yarn update-submodulesto update firmware submoduleyarn update:protobufto generate new./messages.jsonand./src/types/messages.ts
git submodule update --init --recursive to initialize firmware submodule yarn update-submodules to update firmware submodule yar update:protobuf to generate new ./messages.json and ./src/types/messages.ts
Docs
Documentation is available hardware-js-sdk
