I'm using micropython on an XBee3. After testing the program with the Python's IDLE terminal:
from digi.xbee.devices import XBeeDevice
import time, sys
I cross-compile to generate .mpy files:
python -m mpy_cross -mno-unicode -msmall-int-bits=31 main.py
It generates main.mpy, which I then upload with the file manager in XCTU.
When starting on the xbee module, the program generates an error message:
Traceback (most recent call last):
File "main.py", line 1, in <module>
ImportError: no module named 'digi'
It seems that despite the cross-compile, it does not find the import path...
has anyone ever solved the problem ?