ropg / LoRaWAN_ESP32

ESP32 persistence (deep sleep) code for RadioLib LoRaWAN. Can also manage provisioning data
MIT License
8 stars 1 forks source link

LoRaWAN Basic HTTPS example, non-TTN #2

Open ejri opened 1 month ago

ejri commented 1 month ago

Hi, Really glad to have stumbled on your libraries, the Heltec boards have not been the easiest to work with.

Would you please create an example that would connect to networks beyond The Things Network?

NS-AS Tunnel Interface: ideally a Basic HTTPS connection, as it gives a wider example of direct bidirectional connection between the Network Server (NS) and third-party Application Servers (AS) using HTTPS protocol. Downlink messages are accepted only if an encrypted token is included in the POST. Device payloads are exchanged in encoded format without the support of payload drivers.

Ideally, the esp board would send out board temp data as in the TTN example, where users can define their application server as a URL and an encryption key. Uploading the temp as a JSON would also provide a wider example for users potentially as well.

ropg commented 1 month ago

Hey there. Glad you like the library.

Given how scarce bandwidth is in LoRaWAN networks, packaging data in JSON is not really something anyone should be doing.

This library is really just about managing the deep-sleep state information, either with or without the other provisioning data. The things you want to see done are more "How to use RadioLib LoRaWAN to do various things", which (IMHO) does not really belong with this code.