cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

How to subscribe to MQTT broker using DeviceBridge app

How to subscribe to MQTT broker using DeviceBridge app

ahmadKhairi
Established Member

Hi,

I am trying to subscribe to 2 different brokers using the DeviceBridge app:

1. Cedalo MQTT Broker app on ctrlX CORE

2. Cloud based public broker like broker.hivemq.com (Port 1883)

 

For Broker 1. I have created the MQTT device (see to DeviceBridge_Add_MQTT_Device_2022-09-13.png)

When I tested the connection to the broker, connection failed (see DeviceBridge_MQTT_Test_2022-09-13.png)

What do I do to be able to connect to the broker? Do you have some kind of a documentation available?

 

For Broker 2. how do I create the mqtt device but the server (broker.hivemq.com) is not in IP address format?

 

Next, how do I subscribe to an mqtt topic once I have successfully connected to the broker from the DeviceBridge app?

Do I create an mqtt tag after? I mean so far I cannot test this because communication with the broker is still not established.

Hope anyone can help me on this. Thank you!

4 REPLIES 4

Rajeev
New Poster

Hi,

Thank you for reaching out to us.

I have noticed a minor problem in the configuration.

1. Please set "SSL Protocol" to "None" 

2. Usually the MQTT port number is 1883 and not 8883 . Can you recheck this parameter

To connect to hive mq you can use the following configuration

1. IP Address : 3.120.66.120

2. Port : 1883

3. SSL Protocol : None

4 : Certificate : None

Unfortunately the current validation does not allow host names. We will enhance this in upcoming releases.

You can also reach us at : ProductSupport.EIA@in.bosch.com

Regards

Rajeev

 

 

 

 

 

 

 

ahmadKhairi
Established Member

Hi, thank you for your feedback.

I changed to the IP address you suggested and connection is successful.

How did you convert from "broker.hivemq.com" to the IP Address : 3.120.66.120?

I added an MQTT tag to subscribe to a topic to get a temperature sensor data but where can I see this data from DeviceBridge app?

 

For the case of connecting to the ctrlX Cedalo MQTT Broker, the connection is still unsuccessful.

For secure MQTT, Port has to be set to 8883 for TLS connection and have to include parameters such as Username, Password and ClientId.

Any idea how can this be done within DeviceBridge?

 

Any news her or can this topic be closed?

DvB_Support
Long-established Member

Hello,

Minor enhancements added to this MQTT in the recent arm versions.

May i know the current arm version you're using for this MQTT subscription

 

Thanks

Product Support Team

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist