How to send data to TheThingsNetwork (TTN) with the Featherwing RFM95W LoRaWAN module.
- Get a TTN account, open the TTN console and add a TTN application.
- Add a TTN device, change its settings to Activation Method: ABP and uncheck Frame Counter Checks.
- Check the the settings tab to get your TTN Device Address, Network Session Key and App Session Key (copy as MSB).
- Set up the hardware, connect it to your computer via USB.
- Copy the libraries to the lib directory on the CIRCUITPY drive.
- Set ttn_dev_address_msb, ttn_net_session_key_msb and ttn_app_session_key_msb in the lorawan_abp.py example.
- Copy the content of lorawan_abp.py to code.py on the CIRCUITPY drive.
- Check the data tab of your device in the TTN console to see incoming data packets.
- If no data shows up after 15 minutes, make sure you have TTN network coverage.
From the CircuitPython libraries bundle:
- Copy lib/adafruit_tinylora/* (see source and docs).
- Copy lib/adafruit_bus_device/* (see source and docs).
- Feather nRF52840 Express microcontroller.
- FeatherWing RFM95W LoRaWAN module.
- Based on https://github.com/adafruit/Adafruit_CircuitPython_TinyLoRa/tree/master/examples licensed under MIT License