Skip to main content
Version: legacy

LoRa

api.loraSend(ack, timeout, msg, port)

Sends buffer msg to LoRa. Acknowledged or non-acknowledged transport can be used using ack parameter. Maximum execution time is limited by timeout in milliseconds.

api.loraJoin(int)

Sends join request.

api.loraSetup(s1, s2)

Sets parameters defined by strings s1 and s2.

This function resets previous activation settings. Meaning, if you call repeatedly api.loraSetup("ACTIVATION", "OTAA") it'll send join request each time this function is called.

api.loraListenClassC(timeout)

Listens for message until received or timeout in class C.

api.loraSetCredential(var1, var2)

Sets only one LoRa credential.

By Calling this function, the converter also sends Join request.

api.loraSetCredentials(devADDR, devEUI, nwsKey, appsKey, appEUI)

Sets LoRa credentials.

By Calling this function, the converter also sends Join request.