a set of tools for creating visualization interfaces
The driver is meant to control MQTT equipment. To understand the driver, use the project example:
download the example:
Connecting Modbus TCP devices to MQTT cloud services
Connecting iRidium server to IBM Watson IoT
iRidium for MQTT is a set of tools to create an interface to control Smart home or office on the basis of MQTT equipement. It realizes commands of MQTT protocol.
Control panels (iOS, Android, Windows, Mac) can control BACnet equipment only via MQTT controller.
Add MQTT driver to your project from database
Adding MQTT driver
Indicate the controller address in iRidium project otherwise it will not work.
When the driver is added to the project, specify the connection settings.
When SSL/TLS are used only CA signed server certificate can be used. Self signed certificates and CA certificate only are not supported.
You need the possibility to change connection properties when you disconnect from the Wi-Fi network of the automation object and start using 3G or another Wi-Fi network. To maintain control of the object you need to switch from the local to public IP-address of the Internet router.
The switch is not automatic. You have to select the connection mode. For remote acces you have to make ports for controlling the automation system public. In order to do that you have o set up the Port Forwarding service on your Internet router. VPN can provide protected connection.
1 Download the template (*.js) (right-click button: "Save object as ..."), add the template in the script editor with the button (+) Add Script from file
2 Set up script properties as it is shown in the example:
Copy the driver name from Projeсt Device Panel - the list of properties has to be copied from the example.
3 Select the button which will be responsible for the switch of Internal and External properties. Open Macros Editor for the Press event (Object Properties > Programming), select the Script Call command and add it by double-clicking on it. Select the name of the function which will be activated by the button:
Now each pressing on the button will apply the corresponding connection properties.
Commands and feedback channels have to be assigned to graphic items to control equipment:
To assign commands or channels to graphic items use the drag&drop method.
To send a command, drag it on a graphic item. To display feedback, drag the channel on the graphic item and indicate where to output the value (Value):
To configure the command or feedback, you must set the following fields:
logic type (true, false)