A trouble of Pymesh
I am using 2 FiPy with PyScan and LoPy4 with expansion board.
I did update pybytes firmware using update tool.
In the pybytes of web, I made project and group mesh.
And, I did deploy pymesh.
The devices show,
Pycom MicroPython 1.20.2.rc11
Pybytes Version: 1.5.2
Pymesh Version: 1.0.1
When I ran the example code, next error occurred.
AttrubuteError: 'Loramesh' object has no attribute 'mesh'
How can I solve this?
Sorry for the confusion, you are indeed correct it updates to Pybytes rc11 (not exactly sure why though). It means you should have the Pymesh functionality on the device. Which example code are you then refering to? For me, this works fine:
import time if pybytes is not None: if pybytes.__pymesh and pybytes.__pymesh.__pymesh: pymesh = pybytes.__pymesh.__pymesh while True: pkt = "Hello, from " + str(pymesh.mac()) pybytes.send_signal(1, pkt) time.sleep(20)
From this page: https://docs.pycom.io/pybytes/pymeshintegration/example/
I did update r0 but after pymesh deploy, the firmware changed to 1.20.2rc11.
It is strange.
I checked several times.
This post is deleted!
You are using Pygate firmware I believe, as we have no rc11 for the Pybytes firmware version. In the Pygate firmware, LoRa is deactivated as there is a conflict in pin usage. Please use the r0 Pybytes firmware version :)