<?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[Peer-to-peer communication with Husarnet on M5StickC]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I came across this tutorial for using Husarnet to setup peer-to-peer communication between two ESP32 devices (press button on device1 turns on LED on device2, etc.).</p>
<p dir="auto">However I cannot seem to do <code>#include &lt;M5StickC.h&gt;</code> to gain access to M5StickC libraries, since it seems like the fork of ESP32 board they used to add Husarnet libraries to is likely out of date.</p>
<p dir="auto">I am wondering if anyone had success with using Husarnet for P2P communication between two M5StickC's over the internet (each on different network)? Or if anyone had suggestions for other P2P implementations over the Internet?</p>
<p dir="auto">My goal is to have button press on M5StickC-#1 to do something on screen of M5StickC-#2; and vice-versa.</p>
<p dir="auto">Thank you!</p>
<p dir="auto">l3m0n</p>
]]></description><link>https://community.m5stack.com/topic/1656/peer-to-peer-communication-with-husarnet-on-m5stickc</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 15:31:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1656.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jan 2020 18:00:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Wed, 29 Jan 2020 00:19:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> Thanks! I'll have a look. MQTT seems to be working well for now, super easy to setup as well.</p>
]]></description><link>https://community.m5stack.com/post/7229</link><guid isPermaLink="true">https://community.m5stack.com/post/7229</guid><dc:creator><![CDATA[l3m0nad3]]></dc:creator><pubDate>Wed, 29 Jan 2020 00:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 20:55:52 GMT]]></title><description><![CDATA[<p dir="auto">You should look into Blynk (<a href="https://blynk.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://blynk.io/</a>) for IoT communication over the internet. It’s a good alternative to MQTT. I use both of them. Search the forum for examples of both.</p>
]]></description><link>https://community.m5stack.com/post/7227</link><guid isPermaLink="true">https://community.m5stack.com/post/7227</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 28 Jan 2020 20:55:52 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 20:24:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> Appreciate the insight but yes, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> mentioned, the devices are quite far apart (not within range for esp-now to work properly).</p>
]]></description><link>https://community.m5stack.com/post/7226</link><guid isPermaLink="true">https://community.m5stack.com/post/7226</guid><dc:creator><![CDATA[l3m0nad3]]></dc:creator><pubDate>Tue, 28 Jan 2020 20:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 20:23:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> Thanks for the links. Looks perfect for my purpose. I will take a look!</p>
]]></description><link>https://community.m5stack.com/post/7225</link><guid isPermaLink="true">https://community.m5stack.com/post/7225</guid><dc:creator><![CDATA[l3m0nad3]]></dc:creator><pubDate>Tue, 28 Jan 2020 20:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 19:32:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> l3m0nad3 wrote about comunication over internet, so probably distance between these devices are to huge to use esp-now.</p>
]]></description><link>https://community.m5stack.com/post/7223</link><guid isPermaLink="true">https://community.m5stack.com/post/7223</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Tue, 28 Jan 2020 19:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 15:22:50 GMT]]></title><description><![CDATA[<p dir="auto">This is possible also with esp-now, I've even seen it done with uiflow but haven't tried personally</p>
]]></description><link>https://community.m5stack.com/post/7218</link><guid isPermaLink="true">https://community.m5stack.com/post/7218</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Tue, 28 Jan 2020 15:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Tue, 28 Jan 2020 13:01:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/l3m0nad3" aria-label="Profile: l3m0nad3">@<bdi>l3m0nad3</bdi></a></p>
<p dir="auto">On the mqtt server / broker you can store, subscribe (read), feed (write) various types of data in so-called channels / topics / feeds. You can treat such a channel as a global variable programmatically available from any device using the mqtt protocol. For example, on one device you send a value to the selected channel, using the "mqtt publish" function. The second device, on the other hand, "listens" to this channel using the "mqtt subscribe" function and when it arrives, it receives the value sent from the first device. Of course, any device can send and receive.</p>
<p dir="auto">it's hard to find a specific complete example of communication in arduino. You will find faster separately how to send and publish data from the device using the mqtt protocol and how to receive subscribe using mqtt</p>
<p dir="auto">If you put these two examples together, you'll get what you need. See the links, they will brighten up something more</p>
<p dir="auto"><a href="https://youtu.be/v6pcccSWl5s" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/v6pcccSWl5s</a><br />
<a href="https://www.google.com/amp/s/techtutorialsx.com/2017/04/09/esp8266-connecting-to-mqtt-broker/amp/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.google.com/amp/s/techtutorialsx.com/2017/04/09/esp8266-connecting-to-mqtt-broker/amp/</a></p>
]]></description><link>https://community.m5stack.com/post/7216</link><guid isPermaLink="true">https://community.m5stack.com/post/7216</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Tue, 28 Jan 2020 13:01:56 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Mon, 27 Jan 2020 18:51:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> thanks for the reply, do you happen to have any example you could point me towards, where mqtt was used for two devices to send something to each other? Very simple transmission such as a "key word" which would make the recipient device do X if it was code Y sent.</p>
]]></description><link>https://community.m5stack.com/post/7211</link><guid isPermaLink="true">https://community.m5stack.com/post/7211</guid><dc:creator><![CDATA[l3m0nad3]]></dc:creator><pubDate>Mon, 27 Jan 2020 18:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Peer-to-peer communication with Husarnet on M5StickC on Mon, 27 Jan 2020 08:14:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/l3m0nad3" aria-label="Profile: l3m0nad3">@<bdi>l3m0nad3</bdi></a> You could use mqtt protocol with with one of free mqtt server/broker like <a href="http://io.adafruit.com" target="_blank" rel="noopener noreferrer nofollow ugc">io.adafruit.com</a> (i use it)</p>
]]></description><link>https://community.m5stack.com/post/7209</link><guid isPermaLink="true">https://community.m5stack.com/post/7209</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Mon, 27 Jan 2020 08:14:50 GMT</pubDate></item></channel></rss>