Having problems with mqtt response

Trying to get a simple mqtt subscribe-and-respond flow up. I can receive with mqtt-in from remote thingsboard server. But when I add mqtt-out (with same server config), both in & out disconnects when the message goes through. The mqtt is triggered by a rpc call in thingsboard, and it is set up with two-way-command, so it waits for a response and results in request timeout error.

Not sure if there are any restrictions or missing configurations in thingsboard for this to work, but regardless it seems strange that both in and out disconnects? Have tried with setting client id (shared for both in and out). Have tried making duplicate server config with different client id. Have tried leaving empty client id (auto-generated). So far no luck.

Export the two mqtt nodes here so we can see how they are configured.

Have you created 2 configs with the same clientid?

Thanks for your interest! Tried lots of things. But found solution, for reference:

Change 'request' in incoming topic:

v1/devices/me/rpc/request/109

To 'response':

v1/devices/me/rpc/response/109

In that case I think you were either crashing node-red or crashing the broker.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.