Fix port parameters
Forward crc errors too
This commit is contained in:
parent
20144c87f8
commit
d1168a50f9
10
run.py
10
run.py
@ -164,6 +164,8 @@ gateway_conf = {}
|
|||||||
gateway_conf['gateway_ID'] = my_eui
|
gateway_conf['gateway_ID'] = my_eui
|
||||||
gateway_conf['contact_email'] = os.getenv('GW_CONTACT_EMAIL', "")
|
gateway_conf['contact_email'] = os.getenv('GW_CONTACT_EMAIL', "")
|
||||||
gateway_conf['description'] = description
|
gateway_conf['description'] = description
|
||||||
|
gateway_conf['forward_crc_error'] = True
|
||||||
|
gateway_conf['forward_crc_valid'] = True
|
||||||
|
|
||||||
# Use hardware GPS
|
# Use hardware GPS
|
||||||
if(os.getenv('GW_GPS', False)==True):
|
if(os.getenv('GW_GPS', False)==True):
|
||||||
@ -205,11 +207,11 @@ if(os.getenv('SERVER_1_ENABLED', False)):
|
|||||||
server = {}
|
server = {}
|
||||||
if(os.getenv('SERVER_1_TYPE', "semtech")=="ttn"):
|
if(os.getenv('SERVER_1_TYPE', "semtech")=="ttn"):
|
||||||
server['serv_type'] = "ttn"
|
server['serv_type'] = "ttn"
|
||||||
|
server['serv_gw_id'] = os.environ.get("SERVER_1_GWID")
|
||||||
|
server['serv_gw_key'] = os.environ.get("SERVER_1_GWKEY")
|
||||||
server['server_address'] = os.environ.get("SERVER_1_ADDRESS")
|
server['server_address'] = os.environ.get("SERVER_1_ADDRESS")
|
||||||
server['serv_port_up'] = os.environ.get("SERVER_1_PORTUP")
|
server['serv_port_up'] = int(os.environ.get("SERVER_1_PORTUP"))
|
||||||
server['serv_port_down'] = os.environ.get("SERVER_1_PORTDOWN")
|
server['serv_port_down'] = int(os.environ.get("SERVER_1_PORTDOWN"))
|
||||||
server['serv_gw_id'] = os.environ.get("SERVER_1_GWID")
|
|
||||||
server['serv_gw_key'] = os.environ.get("SERVER_1_GWKEY")
|
|
||||||
if(os.getenv('SERVER_1_ENABLED', "false")=="true"):
|
if(os.getenv('SERVER_1_ENABLED', "false")=="true"):
|
||||||
server['serv_enabled'] = True
|
server['serv_enabled'] = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user