Closed ANS-spb closed 2 years ago
What does the import statements look like?
What does the import statements look like?
import meshtastic
import time
from pubsub import pub
According to the manual from https://meshtastic.org/docs/software/python/python-usage
Sorry, I broke that accidentally recently when adding pylint and unit testing. I’m not at a computer right now, but will be in a few hours.
For this new version of meshtastic, you’ll have to temp change imports, or your could downgrade to prior version of the library.
I can be more specific on both options after I verify them myself.
For now, the easiest fix would be to:
pip install meshtastic==1.2.44
Thank you 👍
I don't like it, but I think we now have to add another import statement and change the call to the TCPInterface class.
This is because the TCPInterface class in prior releases was all in the init.py file. This class has been broken out to the tcp_interface.py file.
Also updated that doc: see https://github.com/meshtastic/Meshtastic/pull/148
If I'm trying connect to radio via WiFi from python, I'm getting error:
Everything worked on the previous version 1.2.45
I'm used this method:
interface = meshtastic.TCPInterface("192.168.1.28")
Method from manual not working too
interface = meshtastic.TCPInterface(hostname='192.168.1.28')
Meshtastic-python ver. 1.2.46