Greetings!
We subscribed to a private instance of tti and we are having problems connecting to it. I edited run.py to get the gateway details to get it from our own instance. The gateway has no problem with that as it can get the freq, gateway key, gps etec. But the gateway can’t connect to the private instance.
I’ve modified run.py as follows as suggested by Jac Kersing:
if “router” in ttn_config:
router = ttn_config[‘router’].get(‘mqtt_address’, “mqtt://tti.packetworx.net:1901”)
print ("Router string from ttn_config : " + router)
router = urlparse.urlparse(router)
router = router.hostname # mp_pkt_fwd only wants the hostname, not the protocol and port
else:
router = “router.dev.thethings.network”
I keep getting these messages in the resin.io dashboard.
02.08.18 17:35:59 (+0800) main Time(UTC): 09:35:59-- Latitude: 14.584667(N)-- Longitude:121.065086(E) – Altitute:330.5 m–(06 satellites)
02.08.18 17:36:07 (+0800) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 10, total 30
02.08.18 17:36:17 (+0800) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 20, total 30
02.08.18 17:36:29 (+0800) main 09:36:29 ERROR: [TTN] Connection to server “tti.packetworx.net” failed, retry in 60 seconds
02.08.18 17:36:29 (+0800) main 09:36:29 ERROR: [TTN] Connection to port : “1901” failed… src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 0, total 60
02.08.18 17:36:39 (+0800) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 10, total 60
02.08.18 17:36:49 (+0800) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 20, total 60
Thanks!