MQTT between TTN and other service

TTN acts as an MQTT broker, right?

Other services also have a broker service running. How would someone connect TTN to another service via MQTT? Wouldn’t you have to put a back to back client type application in between? I’m trying to avoid adding another hop in between if at all possible.

Yes, that’s right. Some HTTP integrations use webhooks to forward data, but on our side that will still go through the message broker. Just make sure you place that back-to-back client close (measured in latency) between our servers and the platform you’re connecting to.

Is there any anticipation of having TTH act as a client in the future?

I will have to look into the webhook solution for HTTP but so far I have found a similar situation where the data will need to be reformatted by an intermediary before it can be sent to an application for graphing, etc.

Depending on which direction you want to go you can also setup an MQTT broker such as Mosquitto in bridge mode. http://www.steves-internet-guide.com/mosquitto-bridge-configuration/

1 Like

That’s what I’m going now. Trying to avoid the middle step ideally.