deviceAction(keyID: String, action: String)
Carries out some action on device (tries to refill account on success).
Params:
keyID
- id of nft tokenaction
- action to be carried out
Requirements:
Valid key (timestamp, issuer)
Key whitelisted in device's wallet
Asset (key) in invoking user's wallet
Error messages:
[E1] Key not owned
- Key not found in user's wallet[E3] Wrong key issuer
- Key issuer is other than Supplier[E4] No such device
- There is no such device in Supplier dApp[E5]Key not whitelisted
- Key is not whitelisted in device's data[E6]Device not connected
[E7] Device not active
[E8] Key expired
[E19] Not a key
- there is no asset with given id[E20] Not a device key
- there is no device info in key
PreviousFunctions UsedNextdeviceActionAs(keyID: String, action: String, keyOwner: String, mobileId: String)
Last updated