Issue: How to receive downlink data on RAK811 pHat
Setup: RPi4B, RAK811 pHat
I have a RAK811 pHat.
I have run
sudo pip3 install rak811 to install the python library
Using python I am able to send uplink messages from my pHat to TTN.
Now I would like to investigate the downlink.
On my device’s page in TTN Console I have scheduled a downlink to be sent to the device. What command should I use in my python to access the downlink bytes at the pHat? Where are the commands in the rak811 library documented?
Thank you for any help you can offer.
Here is the text of my current code, in case it’s useful. It’s basically an example program I downloaded:
#!/usr/bin/env python3 from rak811 import Mode, Rak811 lora = Rak811() lora.hard_reset() lora.mode = Mode.LoRaWan lora.band = 'EU868' lora.set_config(dev_eui='xxx', app_eui='xxx', app_key='xxx') lora.join_otaa() lora.dr = 5 lora.send('Hello World') lora.close()