How Can We Help?
This article is applicable only when MQTT broker is installed on same server as XMPro IoTThe Internet of Things (IoT) is the network of physical devices, vehicles, home appliances and other items embedded with electronics, software, sensors, actuators, and connectivity which enables these objects to connect and exchange data..
In MQTT ListenerIs a Stream Object that is responsible to ingest data from sensors and third party systems. configuration, there is required setting called “Broker Address”. Here you need to specify the IP Address or DNS name of the server where MQTT broker is installed and running. This can be done in two ways:
- Using Local Address: 127.0.0.1 (or) localhost
- Using External Address: <Server IP> (or) <Server DNS name>
It is recommended to always use local address instead of the external address. Benefits of using local address are:
- Faster connection because of low network latency.
- Prevents any network or anti-virus related issues.
- Prevents any data loss due to potential connection drops between broker and MQTT listener due to network issues. Though MQTT listener is designed to auto-reconnect within 5 seconds, if there are new messages sent to broker during this time, they might not be picked up by the listener.
Comments are closed.