<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Compare IR received text with a text string. Please help! - ESP32 &amp; ESP8266				            </title>
            <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 18 Nov 2026 20:36:54 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38046</link>
                        <pubDate>Wed, 22 Feb 2023 01:15:34 +0000</pubDate>
                        <description><![CDATA[@tanuki That is what I told you earlier. Also, note that @will said &#039;assumptions&#039;. His example assumes several things that can trip you up so read the documentation.]]></description>
                        <content:encoded><![CDATA[@tanuki That is what I told you earlier. Also, note that @will said 'assumptions'. His example assumes several things that can trip you up so read the documentation.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38046</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38044</link>
                        <pubDate>Wed, 22 Feb 2023 00:58:26 +0000</pubDate>
                        <description><![CDATA[@will Thank you very much! That is the command I was looking for! It really help :-)]]></description>
                        <content:encoded><![CDATA[@will Thank you very much! That is the command I was looking for! It really help :-)]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Tanuki</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38044</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38039</link>
                        <pubDate>Wed, 22 Feb 2023 00:17:30 +0000</pubDate>
                        <description><![CDATA[@tanuki Unless you post your entire code we can do nothing.]]></description>
                        <content:encoded><![CDATA[@tanuki Unless you post your entire code we can do nothing.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38039</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38037</link>
                        <pubDate>Wed, 22 Feb 2023 00:09:15 +0000</pubDate>
                        <description><![CDATA[@tanuki 
Since you don&#039;t provide any information, we can&#039;t really help you without making a lot of wild assumptions.
Assuming that results.value is an unsigned 64 bit integers which you ha...]]></description>
                        <content:encoded><![CDATA[<p>@tanuki </p>
<p>Since you don't provide any information, we can't really help you without making a lot of wild assumptions.</p>
<p>Assuming that results.value is an unsigned 64 bit integers which you have loaded with a set of ASCII characters as a C string and assuming that you don't want to compare it against the contents of the variable called ciao but you actually want to compare it to the text string "ciao" you might try something like ...</p>
<p>char test="ciao";</p>
<p>if ( strcmp(test,(char*)&amp;results.value)==0 ) { /* do something here if they match */};</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Will</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38037</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38036</link>
                        <pubDate>Wed, 22 Feb 2023 00:06:46 +0000</pubDate>
                        <description><![CDATA[@tanuki WHAT???? I don&#039;t understand anything you are saying!!!]]></description>
                        <content:encoded><![CDATA[@tanuki WHAT???? I don't understand anything you are saying!!!]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38036</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38033</link>
                        <pubDate>Tue, 21 Feb 2023 23:54:47 +0000</pubDate>
                        <description><![CDATA[@zander thank you! I checked the command string, however I do not know how to call
serialPrintUint64(results.value, HEX);
inside a command like strcmp. (I use to code in matlab and i m new...]]></description>
                        <content:encoded><![CDATA[<p>@zander thank you! I checked the command string, however I do not know how to call</p>
<pre contenteditable="false">serialPrintUint64(results.value, HEX);</pre>
<p>inside a command like <span>strcmp. (I use to code in matlab and i m new to c++, sorry)</span></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Tanuki</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38033</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38031</link>
                        <pubDate>Tue, 21 Feb 2023 23:45:11 +0000</pubDate>
                        <description><![CDATA[@tanuki Have you tried to google? IIRC, it&#039;s something along the lines of strcmp( stuff ) or memcmp( stuff ) or strncmp if you want to limit the length it&#039;s all documented.
It comes up in g...]]></description>
                        <content:encoded><![CDATA[<p>@tanuki Have you tried to google? IIRC, it's something along the lines of strcmp( stuff ) or memcmp( stuff ) or strncmp if you want to limit the length it's all documented.</p>
<p>It comes up in google on the first page.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38031</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38030</link>
                        <pubDate>Tue, 21 Feb 2023 23:37:53 +0000</pubDate>
                        <description><![CDATA[@will Hi thanks for your answer! The text string I receive is printed in the serial monitor by 
serialPrintUint64(results.value, HEX);
but I do not know how to retrieve that string and com...]]></description>
                        <content:encoded><![CDATA[<p>@will Hi thanks for your answer! The text string I receive is printed in the serial monitor by </p>
<pre contenteditable="false">serialPrintUint64(results.value, HEX);</pre>
<p>but I do not know how to retrieve that string and compare it with "ciao". Thanks!</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Tanuki</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38030</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38028</link>
                        <pubDate>Tue, 21 Feb 2023 23:35:05 +0000</pubDate>
                        <description><![CDATA[@zander Hi, thanks for your answer! 
Basically I do not know how to compare two string.
The command
serialPrintUint64(results.value, HEX);
prints on the serial monitor a text string (fro...]]></description>
                        <content:encoded><![CDATA[<p>@zander Hi, thanks for your answer! </p>
<p>Basically I do not know how to compare two string.</p>
<p>The command</p>
<pre contenteditable="false">serialPrintUint64(results.value, HEX);</pre>
<p>prints on the serial monitor a text string (from an IR signal). I would like to compare that text with another text (e.g. Hello). </p>
<p>Thank you!</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Tanuki</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38028</guid>
                    </item>
				                    <item>
                        <title>RE: Compare IR received text with a text string. Please help!</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38016</link>
                        <pubDate>Tue, 21 Feb 2023 18:24:39 +0000</pubDate>
                        <description><![CDATA[@tanuki There are a lot of libraries for IR, unfortunately, there is no easy way to decide which to use. I used this one HERE    and used it to dump the IR data I was getting from a ceiling ...]]></description>
                        <content:encoded><![CDATA[<p>@tanuki There are a lot of libraries for IR, unfortunately, there is no easy way to decide which to use. I used this one <a href="https://github.com/Arduino-IRremote/Arduino-IRremote" target="_blank" rel="noopener">HERE </a>   and used it to dump the IR data I was getting from a ceiling fan remote. There are 23 example sketches, hopefully, one of them will be helpful to at least become the base of what you need.</p>
<p>As @will said, you need to determine the data type(s) and use the applicable comparison for each type.</p>
<p>BTW, this is one of the best documented libraries I have ever seen. Install the usual way from a zip file using the Sketch/Include Library/Add .ZIP library</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/compare-ir-received-text-with-a-text-string-please-help/#post-38016</guid>
                    </item>
							        </channel>
        </rss>
		