<?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[LoRa mesh missing on Lopy4?]]></title><description><![CDATA[<p dir="auto">Hi all! I'm trying to setup a simple Lora mesh, but I'm stuck on the &quot;setup&quot; part.<br />
If I understand correctly, the LoRa mesh support is only available in the latest development RC builds.</p>
<pre><code>(sysname='LoPy4', nodename='LoPy4', release='1.20.0.rc8', version='v1.9.4-7b83c6d on 2019-03-06', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')
</code></pre>
<p dir="auto">Yet my Lopy4 keeps saying it has no notion of the LoRa &quot;mesh&quot; capabilities when I try something like this:</p>
<pre><code>from network import LoRa

# initialise LoRa
# the LoRa parameters (frecq, sf, bandwidth) has to be the same for all
# nodes in the same Pymesh
lora = LoRa(mode=LoRa.LORA, region=LoRa.EU868)

print(&quot;Enable Pymesh&quot;)
# print(lora.Mesh())
pymesh = lora.Mesh()

# check node state inside Pymesh
# PYMESH_ROLE_DISABLED = 0, ///&lt; The Pymesh stack is disabled.
# PYMESH_ROLE_DETACHED = 1, ///&lt; Not currently participating in a Pymesh.
# PYMESH_ROLE_CHILD    = 2, ///&lt; The Pymesh Child role.
# PYMESH_RlOLE_ROUTER   = 3, ///&lt; The Pymesh Router role.
# PYMESH_ROLE_LEADER   = 4, ///&lt; The Pymesh Leader role.
print(&quot;Pymesh node role: %d&quot;%pymesh.state())

print(&quot;IPv6 unicast addresses: %s&quot;%pymesh.ipaddr())
</code></pre>
<p dir="auto">I keep getting the following error.</p>
<pre><code>AttributeError: 'LoRa' object has no attribute 'Mesh'
</code></pre>
<p dir="auto">And I can see that no &quot;mesh&quot; elements are present in the LoRa class.</p>
<pre><code>&gt;&gt;&gt; LoRa.
__class__       __name__        ABP             ALWAYS_ON
AS923           AU915           BW_125KHZ       BW_250KHZ
BW_500KHZ       CLASS_A         CLASS_C         CODING_4_5
CODING_4_6      CODING_4_7      CODING_4_8      EU868
LORA            LORAWAN         OTAA            RX_PACKET_EVENT
SLEEP           TX_FAILED_EVENT                 TX_ONLY
TX_PACKET_EVENT                 US915           add_channel
airtime         bandwidth       callback        coding_rate
compliance_test                 events          frequency
has_joined      init            ischannel_free  join
mac             nvram_erase     nvram_restore   nvram_save
power_mode      preamble        remove_channel
set_battery_level               sf              stats
timeout         tx_power
</code></pre>
<p dir="auto">I tried the following builds: LoPy4-1.19.0.b4 (<a href="https://github.com/pycom/pycom-libraries/issues/66" target="_blank" rel="noopener noreferrer nofollow">which is confirmed working by somebody else</a>), LoPy4-1.20.0.rc1 and LoPy4-1.20.0.rc8<br />
What am I missing?</p>
]]></description><link>https://forum.pycom.io/topic/4558/lora-mesh-missing-on-lopy4</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 16:08:51 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4558.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Mar 2019 10:15:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LoRa mesh missing on Lopy4? on Tue, 19 Mar 2019 10:15:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi all! I'm trying to setup a simple Lora mesh, but I'm stuck on the &quot;setup&quot; part.<br />
If I understand correctly, the LoRa mesh support is only available in the latest development RC builds.</p>
<pre><code>(sysname='LoPy4', nodename='LoPy4', release='1.20.0.rc8', version='v1.9.4-7b83c6d on 2019-03-06', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')
</code></pre>
<p dir="auto">Yet my Lopy4 keeps saying it has no notion of the LoRa &quot;mesh&quot; capabilities when I try something like this:</p>
<pre><code>from network import LoRa

# initialise LoRa
# the LoRa parameters (frecq, sf, bandwidth) has to be the same for all
# nodes in the same Pymesh
lora = LoRa(mode=LoRa.LORA, region=LoRa.EU868)

print(&quot;Enable Pymesh&quot;)
# print(lora.Mesh())
pymesh = lora.Mesh()

# check node state inside Pymesh
# PYMESH_ROLE_DISABLED = 0, ///&lt; The Pymesh stack is disabled.
# PYMESH_ROLE_DETACHED = 1, ///&lt; Not currently participating in a Pymesh.
# PYMESH_ROLE_CHILD    = 2, ///&lt; The Pymesh Child role.
# PYMESH_RlOLE_ROUTER   = 3, ///&lt; The Pymesh Router role.
# PYMESH_ROLE_LEADER   = 4, ///&lt; The Pymesh Leader role.
print(&quot;Pymesh node role: %d&quot;%pymesh.state())

print(&quot;IPv6 unicast addresses: %s&quot;%pymesh.ipaddr())
</code></pre>
<p dir="auto">I keep getting the following error.</p>
<pre><code>AttributeError: 'LoRa' object has no attribute 'Mesh'
</code></pre>
<p dir="auto">And I can see that no &quot;mesh&quot; elements are present in the LoRa class.</p>
<pre><code>&gt;&gt;&gt; LoRa.
__class__       __name__        ABP             ALWAYS_ON
AS923           AU915           BW_125KHZ       BW_250KHZ
BW_500KHZ       CLASS_A         CLASS_C         CODING_4_5
CODING_4_6      CODING_4_7      CODING_4_8      EU868
LORA            LORAWAN         OTAA            RX_PACKET_EVENT
SLEEP           TX_FAILED_EVENT                 TX_ONLY
TX_PACKET_EVENT                 US915           add_channel
airtime         bandwidth       callback        coding_rate
compliance_test                 events          frequency
has_joined      init            ischannel_free  join
mac             nvram_erase     nvram_restore   nvram_save
power_mode      preamble        remove_channel
set_battery_level               sf              stats
timeout         tx_power
</code></pre>
<p dir="auto">I tried the following builds: LoPy4-1.19.0.b4 (<a href="https://github.com/pycom/pycom-libraries/issues/66" target="_blank" rel="noopener noreferrer nofollow">which is confirmed working by somebody else</a>), LoPy4-1.20.0.rc1 and LoPy4-1.20.0.rc8<br />
What am I missing?</p>
]]></description><link>https://forum.pycom.io/post/26668</link><guid isPermaLink="true">https://forum.pycom.io/post/26668</guid><dc:creator><![CDATA[Belbs]]></dc:creator><pubDate>Tue, 19 Mar 2019 10:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to LoRa mesh missing on Lopy4? on Tue, 19 Mar 2019 13:10:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/4202">@belbs</a> it is my understanding that there are versions with and without Pymesh due to the added size.</p>
<p dir="auto">No idea where you find/select one or the other though, haven’t used it at all myself.</p>
<p dir="auto">Do you have the latest firmware update tool?</p>
]]></description><link>https://forum.pycom.io/post/26674</link><guid isPermaLink="true">https://forum.pycom.io/post/26674</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Tue, 19 Mar 2019 13:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to LoRa mesh missing on Lopy4? on Tue, 19 Mar 2019 15:39:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/4202">@Belbs</a></p>
<p dir="auto">Had the same issue with the <code>1.20.0.rc8</code>. I downgraded to <code>1.20.0.rc7</code> where it seems that loramesh is available (although I am not really sure how the packaging is implemented by pycom).</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://forum.pycom.io/post/26678</link><guid isPermaLink="true">https://forum.pycom.io/post/26678</guid><dc:creator><![CDATA[agotsis]]></dc:creator><pubDate>Tue, 19 Mar 2019 15:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to LoRa mesh missing on Lopy4? on Tue, 19 Mar 2019 16:38:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1573">@agotsis</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a> You're right, package <code>1.20.0.rc7</code> contains the meshing capabilities. Looking at the git commits, rc8 builds on top of rc7 though... so it doesn't make a lot of sense as to why it is not included.<br />
Anyway, it works now! Thanks for the help.</p>
]]></description><link>https://forum.pycom.io/post/26680</link><guid isPermaLink="true">https://forum.pycom.io/post/26680</guid><dc:creator><![CDATA[Belbs]]></dc:creator><pubDate>Tue, 19 Mar 2019 16:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to LoRa mesh missing on Lopy4? on Fri, 22 Mar 2019 14:56:14 GMT]]></title><description><![CDATA[<p dir="auto">It's a little odd that the LoPy includes the mesh functionality but the LoPy4 doesn't in rc8. I would have expected it to be the other way around based on the increased memory capacity on the LoPy4.<br />
Will there be build options available via the firmware update tool to include mesh or not for all supported devices?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Andrew</p>
]]></description><link>https://forum.pycom.io/post/26730</link><guid isPermaLink="true">https://forum.pycom.io/post/26730</guid><dc:creator><![CDATA[thinginnovations]]></dc:creator><pubDate>Fri, 22 Mar 2019 14:56:14 GMT</pubDate></item></channel></rss>