MQTT Synchronization

Prev Next

MQTT sync should be used to synchronize players that don’t support standard local network synchronization over local network (TCP/UDP). MQTT synchronization can either be done over the internet or with a local MQTT broker set up on a dedicated Windows or Linux device.

Sync over Internet

Platforms that don’t support sync over local network (TCP/UDP), will sync over internet (MQTT) by default with no MQTT server needing to be specified:

  • Samsung

  • BrightSign

  • Sony Android

  • Philips Android

Sync with a Local MQTT Broker

To set up sync using a local MQTT broker:

  • A dedicated Windows or Linux device is required.

  • All devices and players must be connected to the same local network.

  1. Download and install mosquitto (MQTT broker) - https://mosquitto.org/download/.

  2. Locate the mosquitto.conf file.

    1. The default path on Windows is C:\Program Files\mosquitto\.

  3. Add the following lines to the configuration file:

    1. listener 9001

    2. protocol websockets

    3. allow_anonymous true

  4. Start the mosquitto service:

    1. WinKey + R → services.msc → mosquitto broker → Start/Restart

  5. Allow the port through the Windows firewall by running this command in terminal:

    1. netsh advfirewall firewall add rule name="Mosquitto WS" dir=in action=allow protocol=TCP localport=9001

Set up Sync in the CX Portal

  1. Configure sync in the CX portal.

  2. Add the custom setting One.MqttServerUrl with value ws://<local-mqtt-server-ip>:9001/