Methods
activateEndnodeOnlineDetecting(active)
activate endnode connectivity detecting
Parameters:
Name | Type | Description |
---|---|---|
active |
boolean |
getEndnode(endNodeVendorThingID) → {promise}
retrieve endnode onboarding status
Parameters:
Name | Type | Description |
---|---|---|
endNodeVendorThingID |
string |
Returns:
- Type
- promise
isGatewayOnboarding() → {boolean}
return if the gateway is onboarding or not (by gateway thingID)
Returns:
- Type
- boolean
loadGatewaySetting() → {Promise}
load gateway setting from db.json
Returns:
- Type
- Promise
onboardEndnodeByOwner(endNodeVendorThingID, propertiesopt) → {promise}
onboard endnode with gateway by owner
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
endNodeVendorThingID |
string | ||
properties |
any |
<optional> |
Returns:
- Type
- promise
onboardGatewayByOwner(propertiesopt) → {promise}
onboard gateway by owner
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
any |
<optional> |
properties |
Returns:
- Type
- promise
setApp(_appID, _appKey, _site)
set app info
Parameters:
Name | Type | Description |
---|---|---|
_appID |
string | appID |
_appKey |
string | appKey |
_site |
string | site |
setTemporaryApp(_appID, _appKey, _site)
set app info without overwriting the configuration
Parameters:
Name | Type | Description |
---|---|---|
_appID |
string | appID |
_appKey |
string | appKey |
_site |
string | site |
setTemporaryUser(ownerToken, userID)
set user without overwriting the configuration
Parameters:
Name | Type | Description |
---|---|---|
ownerToken |
string | ownerToken |
userID |
string | userID |
setUser(ownerToken, userID)
set user info
Parameters:
Name | Type | Description |
---|---|---|
ownerToken |
string | ownerToken |
userID |
string | userID |
updateEndnodeConnectivityByVendorThingID(endNodeVendorThingID, online) → {promise}
update endnode connectivity by vendorThingID
Parameters:
Name | Type | Description |
---|---|---|
endNodeVendorThingID |
string | |
online |
boolean |
Returns:
- Type
- promise
updateEndnodeOnline() → {EndNode}
update endnode connectivity
Returns:
- Type
- EndNode
updateEndnodeState(endNodeVendorThingID, statesopt) → {promise}
update endnode state
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
endNodeVendorThingID |
string | ||
states |
any |
<optional> |
Returns:
- Type
- promise