# Upload device text config via MQTT

**URL:** <https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [June 27, 2022, 10:18am UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702 "2022-06-27T10:18:46Z")\
**Posts on this page:** 5\
**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 27, 2022, 10:18am UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702/1 "2022-06-27T10:18:46Z")

</div>

Dear community

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

I am trying to work with upload text configuration from an MQTT device.

As suggested on our guide [Cumulocity documentation](https://cumulocity.com/guides/reference/device-management-library/#upload-current-text-configuration) I have created a new custom template to manage the c8y\_SendConfiguration

published 11,100,c8y\_SendConfiguration,deviceId on topic s/ut/myTemplate

once I click on “get configuration from my device” in the configuration TAB, I do not get any request on topic s/dt or s/ds

which is the topic I need to subscribe to receive the SendConfiguration command just created?

thanks

Mauro

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [June 27, 2022, 12:18pm UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702/2 "2022-06-27T12:18:22Z")

</div>

Hi Mauro,

have a look here: [Cumulocity IoT Tips and Tricks - MQTT cheat sheet](https://community.cumulocity.com/t/cumulocity-iot-tips-and-tricks-mqtt-cheat-sheet/7573)  
The topic you need to subscribe is “s/dc/myTemplate” if “myTemplate” is your template id.

Btw. event it is suggested to upload the configuration on request to C8Y you can much easier update the text-based configuration using the static template 113,“configProp1=val1\nprop2=val2\n…” on “s/us” topic especially if the configuration it not very big and only uploaded & updated on agent (re)start.

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [June 27, 2022, 1:59pm UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702/3 "2022-06-27T13:59:42Z")

</div>

Find also here a more complete list of all templates:

[Link](https://github.com/Cumulocity-IoT/cumulocity-self-service-certification/blob/main/docs/cheatSheet.md)

---

<div class="post-metadata">

**Author:** ![Kai\_Reinhardt](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/kai_reinhardt/32/18493_2.png) [@Kai\_Reinhardt](https://community.cumulocity.com/u/Kai_Reinhardt)\
**Post date:** [June 28, 2022, 5:33am UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702/4 "2022-06-28T05:33:02Z")

</div>

The actual list for static templates can be found here  
[https://cumulocity.com/guides/reference/smartrest-two/#mqtt-static-templates](https://cumulocity.com/guides/reference/smartrest-two/#mqtt-static-templates)

---

<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 26, 2022, 5:33am UTC](https://community.cumulocity.com/t/upload-device-text-config-via-mqtt/702/5 "2022-09-26T05:33:03Z")

</div>

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