<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Question about last will topic aws mqtt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125530/question-about-last-will-topic-aws-mqtt</link><description>Hi all, 
 
 I&amp;#39;m using aws iot lib and last will topic feature, everuthing works but I have a question, in prj.conf I set my topic with 
 
 Is it possible to build this last will topic at runtime? For example if I want to deploy fota update, I don&amp;#39;t want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Nov 2025 14:35:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125530/question-about-last-will-topic-aws-mqtt" /><item><title>RE: Question about last will topic aws mqtt</title><link>https://devzone.nordicsemi.com/thread/553994?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2025 14:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e0b3c77-5cf1-47b6-8881-dfe5b319bc0f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi simon884,&lt;/p&gt;
&lt;p&gt;Refer to the implementation of the library here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.1.0/subsys/net/lib/mqtt_helper/mqtt_helper.c#L470-L484"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v3.1.0/subsys/net/lib/mqtt_helper/mqtt_helper.c#L470-L484&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t seem like the library support changing the topic in runtime out of the box. However, it also looks like you could modify the library and add your own API to do that.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>