Reply | Reply To: Python API not connecting to Mooshi

Home Forums Mooshimeter Support Python API not connecting to Mooshi Reply To: Python API not connecting to Mooshi

#8678
admin
Keymaster

Hi Bruce,

Regarding needing to reset the meter after the script crash: I think what’s happening is that the BLED112 (the USB dongle) is staying connected after the script crashes. If you unplug the dongle it will force a disconnection.

Regarding the script crash itself, I think you may be facing some git issues. I can tell by the error message, specifically “File “D:\Mooshimeter-PythonAPI-master\Mooshimeter.py”, line 216, in connect
self.meter_serout.enableNotify(True,tmp_cb)”, that the code you’re trying to run is for an experimental version of firmware. How did you move to the master branch? If you’re on the command line, after saving your work, you’ll want to do a “git reset –hard origin/master”

Hope this helps, best
~James