DMRlink/my_ipsc_config_SAMPLE.py
Cort Buffington 2e32fe4881 Sample Configuration File
Currenlty, the configuration file is merely a python data structure of
nexted dictionaries and lists. Eventually it should be moved to a
regular text-based configuration file with a parser to build the data
structure.
2013-07-11 19:50:38 -05:00

35 lines
1.2 KiB
Python

# Configuration file for IPSC.py -- each network has several parts, some of this is muted by the script once it runs, thus there are placeholders
NETWORK = {
'IPSC1': {
'LOCAL': {
'DESCRIPTION': 'IPSC Network name',
'MODE': b'\x6A',
'FLAGS': b'\x00\x00\x00\x14',
'PORT': 50001,
'ALIVE_TIMER': 5, # Seconds between keep-alives and registration attempts
'RADIO_ID': b'\x00\x00\x00\x0A',
'AUTH_KEY': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
},
'MASTER': {
'IP': '1.2.3.4',
'PORT': 50000,
'STATUS': {
'RADIO_ID': b'\x00\x00\x00\x00',
'CONNECTED': 0,
'KEEP_ALIVES_MISSED': 0,
'MODE': b'\x00',
'FLAGS': b'\x00\x00\x00\x00',
}
},
'PEERS': []
# each list item contains {
# 'IP': '100.200.1.1',
# 'PORT': 50000,
# 'RADIO_ID': b'\x00\x00\x00\xFF',
# 'STATUS': {
# 'CONNECTED': 0,
# 'KEEP_ALIVES_MISSED': 0
# }
# }
}
}