chmod +x install.sh && sudo ./install.sh
- Install dependencies
caver-js,nodejs,arduino,arduino-sketch
- Generate
info.json
device
: Device infomationname
: Used in device identificationwallet
: Device Klaytn wallet addressklaytn-node
: URL of running Klaytn nodefirmware-server
: URL of running Firmware-server
// info.json
{
"device": {
"name": "somedevice1",
"wallet": "0x75a59b94889a05c03c66c3c84e9d2f8308ca4abd"
},
"klaytn-node": "http://Serveraddress:8551/",
"firmware-server": "http://Serveraddress:5000/"
}
- Register to server(POST json to
/api/register
)
- Send device wallet in
/api/check/update
- (If update is available) Get
txHash
,file_id
- Get
key
- Auth to server
- Get public URL