File

protocol-lpwan/lpwan-set-device-protocol.service.ts

Index

Properties
Methods

Constructor

constructor(inventoryService: InventoryService, client: FetchClient, identityService: IdentityService, lnsService: MultipleLnsConnectorService)
Parameters :
Name Type Optional
inventoryService InventoryService No
client FetchClient No
identityService IdentityService No
lnsService MultipleLnsConnectorService No

Methods

Async applyProtocol
applyProtocol(device: IManagedObject, selectedProtocol: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
selectedProtocol IManagedObject No
Returns : unknown
Async getAvailableConnections
getAvailableConnections(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : Promise<IResultList<ActilityConnection | SigfoxConnection>>
Async getAvailableProtocols
getAvailableProtocols(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : Promise<IResultList<IManagedObject>>
Async getCurrentProtocol
getCurrentProtocol(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : unknown
getMicroserviceUrl
getMicroserviceUrl(device)
Parameters :
Name Optional
device No
Returns : string
isSupportedDevice
isSupportedDevice(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : boolean
Async refreshCache
refreshCache(device)
Parameters :
Name Optional
device No
Returns : unknown

Properties

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 } ]

results matching ""

    No results matching ""