iotviewdemo.app request mqtt simple app

I need mqtt example to begin, where can I find any mqtt app to download and have a try?
thanks
Parents
  • Dear James,

    1. To connect to a broker you’ll need a broker. You can download the mosquitto MQTT broker from here:
    http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.15a-install-win32.exe

    2. The installation is not so trivial, you need to look over the internet to understand the errors that will be present, and replace some files on the installation folder.

    3. Than you can start the MOSQUITTO Service on your Windows Services

    4. Open your InduSoft IDE, and configure the MQTT driver as follows:

    Tag Station I/O Address
    Test localhost:1883 tom/test

    (test is a string tag)


    5. Save the configuration and run the driver task so the driver is started (no security at this point), also add the test tag (string type) on your database spy;

    6. Open a CMD (Command Prompt) and type the following command:

    C:\Program Files(x86)\mosquitto\mosquitto_pub.exe -h 127.0.0.1 -port 1883 -d -m tom/test -m “ON”

    7. Check your test tag value;
    8. Open a CMD (Command Prompt) and type the following command:

    C:\Program Files(x86)\mosquitto\mosquitto_pub.exe -h 127.0.0.1 -port 1883 -d -m tom/test -m “OFF”
    9. Check your test tag value;

    Best regards,

    Rafa Silva.
Reply
  • Dear James,

    1. To connect to a broker you’ll need a broker. You can download the mosquitto MQTT broker from here:
    http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.15a-install-win32.exe

    2. The installation is not so trivial, you need to look over the internet to understand the errors that will be present, and replace some files on the installation folder.

    3. Than you can start the MOSQUITTO Service on your Windows Services

    4. Open your InduSoft IDE, and configure the MQTT driver as follows:

    Tag Station I/O Address
    Test localhost:1883 tom/test

    (test is a string tag)


    5. Save the configuration and run the driver task so the driver is started (no security at this point), also add the test tag (string type) on your database spy;

    6. Open a CMD (Command Prompt) and type the following command:

    C:\Program Files(x86)\mosquitto\mosquitto_pub.exe -h 127.0.0.1 -port 1883 -d -m tom/test -m “ON”

    7. Check your test tag value;
    8. Open a CMD (Command Prompt) and type the following command:

    C:\Program Files(x86)\mosquitto\mosquitto_pub.exe -h 127.0.0.1 -port 1883 -d -m tom/test -m “OFF”
    9. Check your test tag value;

    Best regards,

    Rafa Silva.
Children
No Data