This guide explains how to connect the Delta Controls O3 Edge Sensor Hub to Blocks. It is assumed that the O3 Edge Sensor Hub has been set up and that the internal MQTT broker has been enabled according to the official instructions (found here).
You will need the ConfigurableMQTT driver available in the PIXILAB blocks-script GitHub repo, as well as the JSON configuration file for the O3 Edge. See this wiki page for information on installing drivers. It is assumed that you are running a Mosquitto MQTT broker, such as the one pre-installed on our Linux server image, that has been configured according to this guide.
The O3 Edge currently only supports publishing values to its internal MQTT broker. In this guide, we will configure the Mosquitto broker (e.g., the one included on our Linux server image) to bridge MQTT topics from the O3's internal broker. This will then let us access the O3 through the regular Mosquitto broker.
connection CONNECTIONNAME address IPADDRESS:PORT topic # both 0 TOPICBASE/ "" cleansession false notifications false remote_clientid CLIENTID remote_password O3EDGEPASSWORD remote_username O3EDGEUSER start_type automatic try_private true
Additional configuration may be required when using encrypted connections. This is not covered in this guide.
In case you need it, the MQTT API documentation for the O3 Edge can be found here.
To connect multiple O3 Edge devices, follow the steps above for each device. There must be one entry per device in Mosquitto's configuration file, and the CONNECTIONNAME, TOPICBASE and CLIENTID must be unique for each device.