# Device MQTT protocol mimic to retrieve device configuration

**URL:** <https://community.cumulocity.com/t/device-mqtt-protocol-mimic-to-retrieve-device-configuration/1312>\
**Category:** Forum\
**Tags:** cumulocity, device-connectivity\
**Created:** [June 22, 2022, 9:44am UTC](https://community.cumulocity.com/t/device-mqtt-protocol-mimic-to-retrieve-device-configuration/1312 "2022-06-22T09:44:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauro\_Stramazzotti](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mauro\_Stramazzotti](https://community.cumulocity.com/u/Mauro_Stramazzotti)\
**Post date:** [June 22, 2022, 9:44am UTC](https://community.cumulocity.com/t/device-mqtt-protocol-mimic-to-retrieve-device-configuration/1312/1 "2022-06-22T09:44:17Z")

</div>

#### What are trying to achieve? Please describe in detail.

Enable remote configuration management of devices connected via MQTT

Dear Community,

we need to enable the retrieve of a snapshot config file from an MQTT device. When the device receive the 520 command via MQTT how should it reply back to send the binary config file? Is there a static Smartrest template to send the config file?

thanks

Mauro

---

<div class="post-metadata">

**Author:** ![Philipp\_Emmel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/philipp_emmel/32/19455_2.png) [@Philipp\_Emmel](https://community.cumulocity.com/u/Philipp_Emmel)\
**Post date:** [June 22, 2022, 10:06am UTC](https://community.cumulocity.com/t/device-mqtt-protocol-mimic-to-retrieve-device-configuration/1312/2 "2022-06-22T10:06:22Z")

</div>

The exact flow of messages sent by the platform and messages expected from your device depends on the variant of configuration you want to integrate. We have a step by step guide of all three configuration variants with upload and download here in our documentation: [Device management library - Cumulocity IoT Guides](https://cumulocity.com/guides/reference/device-management-library/#configuration)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 20, 2022, 10:07am UTC](https://community.cumulocity.com/t/device-mqtt-protocol-mimic-to-retrieve-device-configuration/1312/3 "2022-09-20T10:07:12Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
