MQTT Transmitter unable to connect

We are just starting our MQTT journey and I’m trying to just establish a connection to our MQTT broker and publish/subscribe to some tags to establish everything is working. I’m using Azure Event Grid as the MQTT broker. I have been able to subscribe and publish to some test topics using the Mosquitto utilities. With MQTT Engine, I’ve established a connection and it’s sitting there as Connected.

My problem is with MQTT Transmitter in Ignition. No matter what I do, I get a warning “connect failed due to Not authorized to connect” and then an error “Failed to achieve connected state”. I’m using certificates for authentication, which I’ve uploaded to the Certificates tab and added to the MQTT server definition.

I’m at my wit’s end. Does anyone have any suggestions as to what might be wrong?

The connection settings should be exactly the same for Transmission as they are for Engine. I would suggest checking them one more time. It might be worth trying the Engine certificate on the Transmission connection to verify the basics since you know those creds are good. If you fail to get connected after this, I’d recommend sending and email to support@cirrus-link.com so we can jump on a quick call with a screen share to debug this together.

Got it resolved. It was that the topic space in Azure did not contain the Sparkplug “spBv1.0/” prefix. I think the Transmitter publishes the LWT when it connects, and it did not have permission to publish on that topic. Engine doesn’t publish anything on connect, so it didn’t experience that problem.

1 Like