<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to codesys mqtt publish serialization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/</id><updated>2024-06-05T19:25:17.715000Z</updated><subtitle>Recent posts to codesys mqtt publish serialization</subtitle><entry><title>codesys mqtt publish serialization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/?limit=50#76a0" rel="alternate"/><published>2024-06-05T19:25:17.715000Z</published><updated>2024-06-05T19:25:17.715000Z</updated><author><name>Rampage_Rick</name><uri>https://forge.codesys.com/u/rjonker/</uri></author><id>https://forge.codesys.com9e951495738360d78114d1931120a65972b77176</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;pbPaylod is a pointer, which it expects to point at a STRING.  If you point it at an address holding a different data type, it will just assume those bytes are part of a string and likely trundle along memory until it finds a null byte (0x00) that would normally signify the end of a string&lt;/p&gt;
&lt;p&gt;PublishMessage := BOOL_TO_STRING(boolVariable);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mqtt publish serialization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/?limit=25#1b17" rel="alternate"/><published>2024-03-26T17:40:52.681000Z</published><updated>2024-03-26T17:40:52.681000Z</updated><author><name>mmpl</name><uri>https://forge.codesys.com/u/mmpl/</uri></author><id>https://forge.codesys.come5dda8021232411ea64da5b8209b7e9c0d23e034</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Did you get any Luck? I am on same boat. Can you please share your latest Snip.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mqtt publish serialization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/?limit=25#18f7" rel="alternate"/><published>2024-03-26T17:40:49.023000Z</published><updated>2024-03-26T17:40:49.023000Z</updated><author><name>mmpl</name><uri>https://forge.codesys.com/u/mmpl/</uri></author><id>https://forge.codesys.comf19df77933e7d520e0060610c85b2b522bf2451a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Did you get any Luck? I am on same boat. Can you please share your latest Snip.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mqtt publish serialization</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/589a3a8aff/?limit=25#99f8" rel="alternate"/><published>2024-02-16T21:52:22.721000Z</published><updated>2024-02-16T21:52:22.721000Z</updated><author><name>amy123</name><uri>https://forge.codesys.com/u/amy123/</uri></author><id>https://forge.codesys.comdf152130a75e5c7fe9654cc9b68d72e9a4c34f1e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using the CODESYS IIoT Libraries SL MQTT Publish. Does this publish block only support publishing STRINGS as a readable format?&lt;/p&gt;
&lt;p&gt;I can publish ENUM, STRUCT, BOOL; however, MQTT Explorer will only display strings. When I use Wireshark, I can see that it is publishing something, but it looks to be publishing a serialized version which is a bunch of 0s or random text.&lt;/p&gt;
&lt;p&gt;If so, is there any way to deserialize this information back into a readable format? See pictures, where I have a BOOL TRUE that gets published as 001. Then see where I publish a STRUCT and it's an incomprehensible combination of 0s - only the string variable is displayed.&lt;/p&gt;
&lt;p&gt;Or, is it expected that you convert everything to a string before publishing?&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated! :)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>