protocol-lpwan/lpwan-set-device-protocol.service.ts
Properties |
Methods |
|
constructor(inventoryService: InventoryService, client: FetchClient, identityService: IdentityService, lnsService: MultipleLnsConnectorService)
|
|||||||||||||||
Parameters :
|
Async getAvailableConnections | ||||||
getAvailableConnections(device: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<IResultList<ActilityConnection | SigfoxConnection>>
|
Async getAvailableProtocols | ||||||
getAvailableProtocols(device: IManagedObject)
|
||||||
Parameters :
Returns :
Promise<IResultList<IManagedObject>>
|
Async getCurrentProtocol | ||||||
getCurrentProtocol(device: IManagedObject)
|
||||||
Parameters :
Returns :
unknown
|
getMicroserviceUrl | ||||
getMicroserviceUrl(device)
|
||||
Parameters :
Returns :
string
|
isSupportedDevice | ||||||
isSupportedDevice(device: IManagedObject)
|
||||||
Parameters :
Returns :
boolean
|
Async refreshCache | ||||
refreshCache(device)
|
||||
Parameters :
Returns :
unknown
|
supportedDevicesCfgs |
Type : []
|
Default value : [
{
name: 'lora',
match: device => get(device, 'c8y_LpwanDevice.lpwanDeviceType') === 'Lora',
protocolTypes: ['c8y_ActilityDeviceType', 'c8y_LoraDeviceType', 'c8y_LpwanDeviceType'],
externalIdTypes: ['c8y_LoriotEUI', 'c8y_Serial'],
connectionType: ConnectionType.ACTILITY
},
{
name: 'sigfox',
match: device => get(device, 'c8y_LpwanDevice.serviceProvider') === 'Sigfox',
protocolTypes: ['c8y_SigfoxDeviceType', 'c8y_LpwanDeviceType'],
externalIdTypes: ['com.sigfox.deviceId'],
connectionType: ConnectionType.SIGFOX
}
]
|