This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODSF: GUI Composer - IBM IoT MQTT

Part Number: CC3235MODSF
Other Parts Discussed in Thread: CC3235SF

Hi,

I'm trying to use GUI Composer to create a simple GUI to receive and send messages via MQTT on IBM Watson IoT Cloud. I set up my IBM Cloud profile and device, and am using the watson_mqttclient_CC3235SF example code. 

Following the IBM IoT Tutorial I'm able to successfully receive a published message from the CC3235 on my GUI. However, I'm unable to bind a widget to send a message from the GUI to the CC3235. I followed the JSON formatting from the GUI Composer 2 User Guide but I am not detecting any activity on the subscribed topic. 

Thanks

Emma

  • Hi Emma,

    Sorry for the delay. I have escalated this to a GC expert.

    Thanks

    ki

  • Hi Emma,

    I was not able to get this to work well either. It seems like there are a couple bugs in GUI Composer that have broken the publishing. I have filed GC-1876 to address this.

    I did manage to send a message via the GUI Composer project properties dialog. Widget-bindings will not work right now, but if you want to test that your device can receive data from a subscribed topic, you can try the properties dialog. You first have to set the "device-type" in the index.gui (this is a bug, you shouldn't need to do this manually). Click the "< >" button in the toolbar and near the bottom of the file, edit the <ti-device-iot> element to include device-type eg.

    <ti-device-iot id="ti_device_iot" hidden device-type="YOUR_DEVICE_TYPE" device-id="12345abc" device-name="test"></ti-device-iot>

    Once that's done, navigate to the menu option "Project -> Properties" to get the console pictured below. You should be able to connect and enter a command in the form of "<bindingName>.<cmd>=<value>". Your device should receive the message assuming it's subscribed to "iot-2/cmd/<cmd>/fmt/json".

    Hope this helps,

    Newton