Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Functions are listed bellow:
Adds an existing NFT Key to device whitelist.
keyID
- id of NFT
Invoking wallet must be owner of device or main dApp
Key issued by Supplier dApp
[E102] Wrong key issuerr
- issuer of asset is other than Supplier
[E103] Not permitted
- user is not a device owner
[E104] This key is banned
- key is banned by Supplier
[E105] This key is already assigned
Device dApp is a blockchain account representing a physical entity - an IoT device, car, gate, or something else connected to the Internet.
Data are listed bellow:
Data properties:
Data properties:
Data properties:
NOTE: all properties in Device details
and Physical address
are optional.
Key | Type | Required | Default value | |
---|---|---|---|---|
name
string
Name of the device
description
string
Device description
type
string
required
“device”
Type of entity
supplier
string
required
Supplier blockchain address
owner
string
required
Owner blockchain address
active
boolean
required
Flag signalling if Device is active
visible
boolean
required
Flag signalling if Device is visible
connected
boolean
required
Flag signalling if Device is connected
version
string
required
“1”
Device dApp version
lat
string
Device latitude
lng
string
Device longitude
alt
string
Device altitude
custom
object as stringified JSON
Custom Device properties
key_<assetId>
string - “active” or “inactive”
Key allowed to perform actions
details
Object as stringified JSON
Device details - see schema below
deviceType
Enum string
Device type
Supported values:
'car barrier' | 'human barrier' | 'elevator' | 'human' | 'mobile' | 'other'
deviceModel
string
Device model
additionalDescription
string
Additional description
assetUrl
string
URL to an optional asset(like an image)
url
string
URL related to the Device
contactInfo
string
Contact info to the owner of the Device
physicalAddress
object
Physical Address of the Device - see schema below
Key
Type
Description
addressLine1
string
Device address
addressLine2
string
Device address cd.
city
string
City
postcode
string
Postcode
state
string
State
country
string
Country
number
string
Building number
floor
string
Building floor
Updates data in device wallet.
List of actions written as string (max. 15 entries at once) in schema: action#type#key#value
. Types of action set/delete.
action
- set (create new/update old entry), delete (remove entry)
type
- type of entry (int/string/bool), skip for delete
value
- value of entry or delete#key, skip for delete
key
- key of entry
[E103] Not permitted
- user is not device's Supplier