Problem is that the gateway is still reporting as “never seen”, so have been unable to connect a device.
At first glance, is there something that I’ve missed? I’m feeling that 1883 might need to be available as well, but that counteracts what I’m trying to do with dynamic security on mqtt.
You likely need to configure your gateway bridge / MQTT forwarder with your MQTT broker security info to have it connect. Unless it is using localhost as well and confirmed working.
We’ve tried connecting as Liam suggests, but still can’t seem to get the gateway to connect to Chripstack using the MQTT connection. While it’s blurred, the Broker Address is that of our VM running both MQTT and Chirpstack.
I tested those credentials using MQTTX using the same settings without issue.
What gateway is this? I would be surprised if it’s MQTT forwarder was compatible, although it does state it is specifically for v4.
I meant the chirpstack-gateway-bridge (the newer version is called the MQTT forwarder), set your gateway to send UDP packets to the chirpstack gateway bridge, then ensure the gateway bridge is properly connecting to your MQTT Broker.
If the gateway bridge already has the right credentials, or is using localhost and should have no security issues. Then share your chirpstack logs so we can properly diagnose the issue. Or atleast any errors you can see in the logs (ideally restart your Chirpstack then view the logs for errors).
This is a RAK7268CV2 running WisGateOS_2.2.10_RAK.
I set the RAK back to use UDP 1700.
I restarted the chirpstack-gateway-bridge, and it appears to be connecting to the mqtt broker. Also notice that the second highlighted portion is the gateway ID of the RAK that we registered in Chripstack UI.
I believe your issue is that you must specify the subband in your region_prefix for the gateway bridge. I.E us915_0 not just us915. You can see in the stats messages, the gateway is posting to us915, but in the MQTT subscription loop parts of the Chirpstack logs, Chirpstack only subscribes to us915_0, not us915. Try changing the region prefix in your gateway bridge and I think that will solve the issue.