@chargerwallet/hd-transport
v4.0.0
Published
> HD Transport
Downloads
151
Readme
hd-transport
hd-transport
is a library for low-level communication with ChargerWallet Hardware.
What is the purpose
- translate JSON payloads to binary messages using protobuf definitions comprehensible to ChargerWallet devices
- chunking and reading chunked messages according to the ChargerWallet 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 chargerwallet-firmware you need to update protobuf definitions.
git submodule update --init --recursive
to initialize git submodules.yarn update-submodules
to update firmware submoduleyarn update:protobuf
to generate new./messages.json
and./src/types/messages.ts
git submodule update --init --recursive to initialize firmware submodule yarn update-submodules to update firmware submodule yarn update:protobuf to generate new ./messages.json and ./src/types/messages.ts
Docs
Documentation is available hardware-js-sdk