MQTT
Last updated
Last updated
This walkthrough shows a step by step process to onboard building data to DCH using MQTT. This is a general process and does not detail specific gateway/tool workflow. We may have a detailed documentation regarding your gateway, check this .
On the sidebar go to Sites and click on Add New Site.
Enter a Site ID. All other fields including the address details are optional.
Press Create Site Information.
On the sidebar, go to Sites again and press on Add New Building.
Select your previously created site and set a Building ID. All other fields are optional.
Press Create Building Information
You now have a site and that site has a building.
Your MQTT username
Your MQTT password
In this case, our username is dsapi-annoying-willing-tank:a34960ca-5f96-477f-84df-2015c3efc871@dataclearinghouse.org and our password is walkthrough_password.
You can verify your data source is created by navigating to the Data Sources page.
This walkthrough assumes you already have a list of points which you want to export and your gateway is already polling those values. In addition, it assumes your gateway can create JSON payloads and encrypt the data using TLS 1.2. For the purposes of this walkthrough, a simple Python script is publishing mock data to DCH.
The host ID of DCH's broker is broker2.dataclearinghouse.org.
A sample payload would be:
If the publish is successful, you should be able to see the data on DCH. Navigate to your data source again and the points should be listed there after a short period of time.
A detailed description of this step is provided . At the end of this step you should have:
Please make sure you have read of the documentation before you continue. For this walkthrough we will be using the full recommended payload. The topic of all MQTT messages will be: