I’m trying to use AWS IoT Core as my MQTT Broker between LoRa Server and my LoRa Gateway. When I try to connect LoRa Server to IoT Core, I get the below error:
ERRO backend/gateway: connecting to mqtt broker failed, will retry in 2s: Network Error : %!s(<nil>)
The configuration I’m trying to use is as follows:
# AWS IoT Core MQTT connection server="tcp://a3l2g4943ig5a7.iot.us-west-2.amazonaws.com:8883" # AWS-provided CA file ca_cert="/home/pi/LoRa/AWS-2048bit.pem" # TLS certificate file (optional) tls_cert="/home/pi/LoRa/4b09fe010a-certificate.pem.crt" # TLS key file (optional) tls_key="/home/pi/LoRa/4b09fe010a-private.pem.key"
Version of LoRa Server:
This error message appears here in the source code, but I can’t see any way token.Error() would ever print nil in this code.
Is this a configuration error / incompatibility or a bug?