<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is it possible to extract child ID from a just sent message?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
In my ongoing effort to ensure end to end data transmission of some more critical data, is it possible to extract / retrieve the constituent elements of a message, just sent. in the manner of an incoming message in the receive() function?<br />
i.e. can I in a separate function, handling the "logging" of outgoing messages (to be compared to incoming echos) do something like</p>
<pre><code>send(msgSPFlag.set(SPupdateFlag), true);
ChildIDtoCheck = message.sensor;
</code></pre>
<p dir="auto">My aim would be to put the sent childID's into a buffer and then loop through the childID's (in the buffer) in the receive function, and then remove them from the buffer on successful receipt of an echo, if this works, I could possibly expand this to check the actual message payload against what was sent, but that is probably unnecessary.</p>
<p dir="auto">If that isn't possible, than I'll just have to pass the child to my function as well, but it would be nicer if I can "extract" it.</p>
<p dir="auto">Many thanks Nigel</p>
]]></description><link>https://forum.mysensors.org/topic/11839/is-it-possible-to-extract-child-id-from-a-just-sent-message</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 20:24:57 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11839.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Nov 2021 09:21:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to extract child ID from a just sent message? on Sun, 30 Mar 2025 19:28:14 GMT]]></title><description><![CDATA[<p dir="auto">It seems you can access the child ID from the sent message by looking at the destination property. If you have the message object, you can extract the ID directly from there.</p>
]]></description><link>https://forum.mysensors.org/post/114278</link><guid isPermaLink="true">https://forum.mysensors.org/post/114278</guid><dc:creator><![CDATA[ZenBlizzard]]></dc:creator><pubDate>Sun, 30 Mar 2025 19:28:14 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to extract child ID from a just sent message? on Thu, 25 Nov 2021 10:44:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nigel31" aria-label="Profile: Nigel31">@<bdi>Nigel31</bdi></a> Hello, if you have a message variable (msgSPFlag I guess ?) then you have the child ID in it in the <em>destination</em> property of the message.</p>
]]></description><link>https://forum.mysensors.org/post/111264</link><guid isPermaLink="true">https://forum.mysensors.org/post/111264</guid><dc:creator><![CDATA[Nca78]]></dc:creator><pubDate>Thu, 25 Nov 2021 10:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to extract child ID from a just sent message? on Thu, 25 Nov 2021 09:06:38 GMT]]></title><description><![CDATA[<p dir="auto">I Guess given the lack of response, that the answer is no.</p>
<p dir="auto">I am passing the child ID to my function as a separate int.</p>
]]></description><link>https://forum.mysensors.org/post/111263</link><guid isPermaLink="true">https://forum.mysensors.org/post/111263</guid><dc:creator><![CDATA[Nigel31]]></dc:creator><pubDate>Thu, 25 Nov 2021 09:06:38 GMT</pubDate></item></channel></rss>