Simple text chat client for the LoStik Lora device using Python and PySimpleGUI for UI
Since I'm just getting started with Lora, I decided to create a simple chat application in Python with a UI in PySimpleGUI. The application uses the Ronoth LoStik device:
The LoStik device communicates over a COM port on Windows, so we need to install pyserial
. The UI uses PySimpleGUI so we also need that:
pip install PySimpleGUI
pip install pyserial
To run the program:
python main.py
You will then see the UI. You can click the Settings button if you wish to change the frequency, power, bandwidth or spread settings:
Enter the COM port your LoStik device is connected to, press the Connect button. If Debug Mode
is turned on, you should see the strings being send back and forth to the LoStik. Now enter you message in the textbox and click Send.