Skip to content

Example application that queries SNAPconnect and displays SNAPconnect instance information on the command-line

License

Notifications You must be signed in to change notification settings

synapse-wireless/snapconnect-display-info-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SNAPconnect Example - Display Basic SNAPconnect Info

This example application queries SNAPconnect for its version, address, and encryption settings and displays that information on the command-line.

Running This Example

This short 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, simply run:

python DisplayInfo.py

If SNAPconnect was installed correctly, you should see output that includes your Python version string, your SNAPconnect version number, your SNAPconnect instance's SNAP address, and your SNAPconnect instance's encryption setting:

$ python DisplayInfo.py
Python version is 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)]
2016-04-04 22:19:09 DEBUG: Permanent license created on 2012-02-14 14:14:45.343000 for 000020
SNAP Connect version number 3.5.1
My SNAP Address is 00.00.20
Encryption is set to 0

Note: If you do not have a license.dat file, you will get a message explaining that SNAPconnect is using the default trial license.

For more details, refer to source file DisplayInfo.py.

License

Copyright © 2016 Synapse Wireless, licensed under the Apache License v2.0.

About

Example application that queries SNAPconnect and displays SNAPconnect instance information on the command-line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages