This example demonstrates how you can combine the wxPython library and SNAPconnect to create graphical interfaces that can interact with networks of SNAP devices. It allows you to connect to a bridge node, set your encryption type, and perform an over-the-air firmware upgrade of another node.
This example is intended to be used with Python 2.6-2.7 and wxPython 3.0.0-3.0.1. Older or newer versions of Python and wxPython may also work but have not been tested.
Windows and OSX binaries for wxPython can be found at www.wxpython.org/download.php. For Linux systems, you can use whatever package manager is included with your distribution or build from source.
See www.wxpython.org for more information.
This example application has no command-line parameters and requires no configuration, other than installing SNAPconnect as a dependency:
pip install --extra-index-url https://update.synapse-wireless.com/pypi snapconnect
Once you have installed SNAPconnect and wxPython, simply run:
python FirmwareUpgrader.py
Running this command will launch the GUI. Tooltips are included on each input to give more details on how they can be used and what they correspond to when using SNAPconnect as a Python library. See comments in FirmwareUpgrader.py for information on how the GUI is tied into SNAPconnect.
After filling out the required information, this script can be used to upgrade the firmware of a given node.
Copyright © 2016 Synapse Wireless, licensed under the Apache License v2.0.