-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconnection.py
executable file
·46 lines (34 loc) · 1.03 KB
/
connection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
'''
Provides a basic connection definition for the OpenLCB python test suite
Works with the (mutable) defaults.py file, which contains specific values
@author: Bob Jacobsen
'''
import defaults
network = defaults.network
thisNodeID = defaults.thisNodeID
thisNodeAlias = defaults.thisNodeAlias
testNodeID = defaults.testNodeID
testNodeAlias = defaults.testNodeAlias
def main():
usage()
return # done with example
def list() :
print "network.host = "+network.host
print "network.port = "+str(network.port)
print "thisNodeID = ",thisNodeID
print "thisNodeAlias = "+hex(thisNodeAlias)
print "testNodeID = ",testNodeID
print "testNodeAlias = "+hex(testNodeAlias)
return
def usage() :
print ""
print "Python module for defining the layout connection."
print ""
print "Invoked by other routines to know how to send, "
print "not intended to be invoked standalone"
print ""
list()
return
if __name__ == '__main__':
main()