EndDevice

The EndDevice class is used to create an end device for the application.

Constructor

new EndDevice(applicationID, config)

The constructor function is a special function that is called when an object is created from a class.

Parameters:
NameTypeDescription
applicationIDstring

The ID of the application you want to use.

configConfig

This is the configuration object that is passed to the constructor of the base class.

Extends

  • SetConfig

Methods

createEndDeviceIS(payload) → {Output-CreateEndDeviceIS}

It creates an end device for the application.

Parameters:
NameTypeDescription
payloadInput-CreateEndDeviceIS

CreateEndDeviceIS

Returns:

The response from the API. ----> CreateEndDeviceIS

Type: 
Output-CreateEndDeviceIS

deleteEndDeviceAS(payload) → {Output-EmptyPayload}

It deletes the end device in the application server.

Parameters:
NameTypeDescription
payloadInput-DeleteEndDeviceAS

DeleteEndDeviceAS

Returns:

The response from the API.

Type: 
Output-EmptyPayload

deleteEndDeviceIS(payload) → {Output-EmptyPayload}

It deletes the end device in the identity server.

Parameters:
NameTypeDescription
payloadInput-DeleteEndDeviceIS

DeleteEndDeviceIS

Returns:

The response from the API.

Type: 
Output-EmptyPayload

deleteEndDeviceJS(payload) → {Output-EmptyPayload}

It deletes the end device in the join server.

Parameters:
NameTypeDescription
payloadInput-DeleteEndDeviceJS

DeleteEndDeviceJS

Returns:

The response from the API.

Type: 
Output-EmptyPayload

deleteEndDeviceNS(payload) → {Output-EmptyPayload}

It deletes the end device in the network server.

Parameters:
NameTypeDescription
payloadInput-DeleteEndDeviceNS

DeleteEndDeviceNS

Returns:

The response from the API.

Type: 
Output-EmptyPayload

downlinkQueue(payload)

It push or replace the downlink queue in the application server.

Parameters:
NameTypeDescription
payloadInput-DownlinkQueue

Input-DownlinkQueue

getEndDeviceInfoAS(payload) → {Output-GetEndDeviceInfo}

It returns the end device information for the application in the Application Server.

Parameters:
NameTypeDescription
payloadInput-GetEndDeviceInfo

GetEndDeviceInfo

Returns:

The response from the API. ----> GetEndDeviceInfo

Type: 
Output-GetEndDeviceInfo

getEndDeviceInfoIS(payload) → {Output-GetEndDeviceInfo}

It returns the end device information for the application in the Identity Server.

Parameters:
NameTypeDescription
payloadInput-GetEndDeviceInfo

GetEndDeviceInfo

Returns:

The response from the API. ----> GetEndDeviceInfo

Type: 
Output-GetEndDeviceInfo

getEndDeviceInfoJS(payload) → {Output-GetEndDeviceInfo}

It returns the end device information for the application in the Join Server.

Parameters:
NameTypeDescription
payloadInput-GetEndDeviceInfo

GetEndDeviceInfo

Returns:

The response from the API. ----> GetEndDeviceInfo

Type: 
Output-GetEndDeviceInfo

getEndDeviceInfoNS(payload) → {Output-GetEndDeviceInfo}

It returns the end device information for the application in the Network Server.

Parameters:
NameTypeDescription
payloadInput-GetEndDeviceInfo

GetEndDeviceInfo

Returns:

The response from the API. ----> GetEndDeviceInfo

Type: 
Output-GetEndDeviceInfo

getEndDeviceList(payloadopt) → {Output-GetEndDeviceList}

It returns the list of end devices for the application in the Identity Server.

Parameters:
NameTypeAttributesDescription
payloadInput-GetEndDeviceList<optional>

Input-GetCollabortorList

Returns:

The response from the API. ----> GetEndDeviceList

Type: 
Output-GetEndDeviceList

issueDevEUI() → {Output-IssueDevEUI}

It returns DevEUIs that are available for use.

Returns:

The response from the API.

Type: 
Output-IssueDevEUI

setEndDeviceAS(payload) → {Output-SetEndDeviceAS}

It sets an end device for the application in the Application Server.

Parameters:
NameTypeDescription
payloadInput-SetEndDeviceAS

SetEndDeviceAS

Returns:

The response from the API. ----> SetEndDeviceAS

Type: 
Output-SetEndDeviceAS

setEndDeviceJS(payload) → {Output-SetEndDeviceJS}

It sets an end device for the application in the Join Server.

Parameters:
NameTypeDescription
payloadInput-SetEndDeviceJS

SetEndDeviceJS

Returns:

The response from the API. ----> SetEndDeviceJS

Type: 
Output-SetEndDeviceJS

setEndDeviceNS(payload) → {Output-SetEndDeviceNS}

It sets an end device for the application in the Network Server.

Parameters:
NameTypeDescription
payloadInput-SetEndDeviceNS

SetEndDeviceNS

Returns:

The response from the API. ----> SetEndDeviceNS

Type: 
Output-SetEndDeviceNS

subscribeDownLinkEvent(payload) → {Output-SubscribeDownLinkEvent}

It subscribes downlink event topic.

Parameters:
NameTypeDescription
payloadInput-SubscribeDownLinkEvent

Input-SubscribeDownLinkEvent

Returns:

It returns client object and topic.

Type: 
Output-SubscribeDownLinkEvent

subscribeUpLinkEvent(payload) → {Output-SubscribeUpLinkEvent}

It subscribes uplink event topic.

Parameters:
NameTypeDescription
payloadInput-SubscribeUpLinkEvent

Input-SubscribeUpLinkEvent

Returns:

It returns client object and topic.

Type: 
Output-SubscribeUpLinkEvent

unsubscribeEvent(payload)

It unsubscribes event topic.

Parameters:
NameTypeDescription
payloadmqtt_connection_object

MQTT Connection Object

updateEndDevice(payload) → {Output-UpdateEndDevice}

It updates the end device information for the application.

Parameters:
NameTypeDescription
payloadInput-UpdateEndDevice

UpdateEndDevice

Returns:

The response from the API. ----> UpdateEndDevice

Type: 
Output-UpdateEndDevice