From d1168a50f9e7ca16e46cadf4c6ac791e982612b0 Mon Sep 17 00:00:00 2001 From: jpmeijers Date: Mon, 29 May 2017 15:14:02 +0200 Subject: [PATCH] Fix port parameters Forward crc errors too --- run.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index 040831a..6bb319f 100755 --- a/run.py +++ b/run.py @@ -164,6 +164,8 @@ gateway_conf = {} gateway_conf['gateway_ID'] = my_eui gateway_conf['contact_email'] = os.getenv('GW_CONTACT_EMAIL', "") gateway_conf['description'] = description +gateway_conf['forward_crc_error'] = True +gateway_conf['forward_crc_valid'] = True # Use hardware GPS if(os.getenv('GW_GPS', False)==True): @@ -205,11 +207,11 @@ if(os.getenv('SERVER_1_ENABLED', False)): server = {} if(os.getenv('SERVER_1_TYPE', "semtech")=="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['serv_port_up'] = os.environ.get("SERVER_1_PORTUP") - server['serv_port_down'] = 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") + server['serv_port_up'] = int(os.environ.get("SERVER_1_PORTUP")) + server['serv_port_down'] = int(os.environ.get("SERVER_1_PORTDOWN")) if(os.getenv('SERVER_1_ENABLED', "false")=="true"): server['serv_enabled'] = True else: