Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Re: MQTT publish failure

    pdo
    Community Manager
    Community Manager

    Re: MQTT publish failure

    Hello alter_mage ,

    Please see the news and new contact below, thank you!

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

    Cross Domain Development Kit | XDK

    The Bosch XDK IoT hardware platform and associated software has been transferred to LEGIC Identsystems Ltd.

    LEGIC has been an XDK ecosystem partner since 2019.

    Please send XDK inquiries to LEGIC:

    www.legic.com,

    iot@legic.com

    1 REPLY 1
    alter_mage
    Occasional Visitor

    MQTT publish failure

    Hi all,

     

    I had edited the existing module for SendDataOverMQTT to publish the environmental data (accelerometer, gyroscope and noise) to a local broker (IP provided in the MQTT setup). The edit is limited to just removing the code responsible for subscribing to an IP/topic. The MQTT connection is unsecured. The XDK is able to stream and publish the environmental data as it is supposed to.

    INFO | XDK DEVICE 2: MqttEventHandler : Event - 15

     

    However, after some ~130 publishes the XDK device forever logs failed MQTT publishes like:

    INFO | XDK DEVICE 2: AppControllerFire : MQTT publish failed
    INFO | XDK DEVICE 2: Error in XDK110 Application package.
    INFO | XDK DEVICE 2: Package ID: 153
    INFO | XDK DEVICE 2: Module ID: 49
    INFO | XDK DEVICE 2: Severity code: 2
    INFO | XDK DEVICE 2: Error code: 149

     

    The series of failures is actually quite regular as the same failures after ~130 successful publishes happen after rebooting the XDK device. Has someone come across this before? Any help would be very much appreciated!

     

    alter_mage

    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