We will need to create four files and download a file for the gateway code. We will also download and install Thonny if it is not already installed on your computer:
- In your browser, navigate to the GitHub location for uPyLoRa (https://github.com/lemariva/uPyLoRaWAN) and download the library.
- If you do not have Thonny installed on your computer, navigate to www.thonny.org and download and install it.
- Create a folder on your computer called gateway and copy and paste the sx127x.py file from the uPyLoRa library into the folder.
- In Thonny, under the This Computer section, navigate to the gateway folder you just created (you may need to select View | Files to see it):
- Open up the sx127x.py file and scroll down ...