Developer Portal Community

    We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.

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

    MQTT communication errors in MITA application

    MQTT communication errors in MITA application

    skommareddy
    New Poster
    I am getting an error when XDK tries to connect and send data over MQTT. Our MQTT server needs a secure connection. Please help resolve the error.
    I included below some information for your initial reference. Thank you in advance.
     
    INFO | XDK DEVICE 1: ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
     INFO | XDK DEVICE 1: crt content:682  . Setting up the SSL/TLS structure... ok success
     INFO | XDK DEVICE 1:   !  mbedtls_x509_crt_parse Succeeded
     INFO | XDK DEVICE 1: SntpSentCallback : Success
     INFO | XDK DEVICE 1: SntpTimeCallback : received
     INFO | XDK DEVICE 1: [INFO, C:/Users/skommare/XDK-Workspace/EclipseMitaApplication/src-gen/base/ConnectivityMQTTMqttBroker.c:195] MQTT_Enable : Getting time successful. Current time is 2021-08-23T00:58:22Z
     INFO | XDK DEVICE 1: Error in XDK110 Application package.
     INFO | XDK DEVICE 1: Package ID: 153
     INFO | XDK DEVICE 1: Module ID: 0
     INFO | XDK DEVICE 1: Severity code: 2
     INFO | XDK DEVICE 1: Error code: 12
     INFO | XDK DEVICE 1: [ERROR, C:/Users/skommare/XDK-Workspace/EclipseMitaApplication/src-gen/base/ConnectivityMQTTMqttBroker.c:442] MQTT_Connect : Failed to connect
     INFO | XDK DEVICE 1: [ERROR, C:/Users/skommare/XDK-Workspace/EclipseMitaApplication/src-gen/main.c:232] failed to enable ConnectivityMQTTMqttBroker
     INFO | XDK DEVICE 1: [INFO, C:/Users/skommare/XDK-Workspace/EclipseMitaApplication/src-gen/base/ConnectivityMQTTMqttBroker.c:288] MQTT_Write : Reconnecting...
     INFO | XDK DEVICE 1: [ERROR, C:/Users/skommare/XDK-Workspace/EclipseMitaApplication/src-gen/base/ConnectivityMQTTMqttBroker.c:442] MQTT_Connect : Failed to connect
    2 REPLIES 2

    pdo
    Community Manager
    Community Manager

    Hello skommareddy,

    Please just let us know if you did not yet get feedback on this, as in general this XDK Community is now read-only, thank you.

    https://community.developer.bosch.com/t5/Technical-Support-Read-only/XDK-transferred-to-LEGIC-Idents...

     

     

    Elektron
    Established Member

    Hi  skommareddy,

    Did you check out the Example on Eclipse.org? https://www.eclipse.org/mita/platforms/xdk110/#mqtt

    Are you sure that the XDK is able to reach the MQTT-Broker? IP-Address correct? DNS-Server set correctly? Defaultgateway set correct?

    If your PC is connected to the same WIFI, can you ping the XDK and the Gateway?

    Hope that helps.

     

    BR Michael

    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