ljakob / unit_ut61eplus

Access digtal multimeter UNI-T UT61E+ from Python via CP2110 based USB connection
GNU General Public License v3.0
32 stars 11 forks source link

loop_forever() -> loop() #2

Open felixsteghofer opened 2 years ago

felixsteghofer commented 2 years ago

Hi again,

little fix to get the mqtt bridge running.

Best

ljakob commented 2 years ago

Hi, could you please tell the motivation why to switch from loop_forever to loop? The code for the bridge was copied from a local project of mine that works for ages. The idea is to let the library call loop_forvever (with reconnect handling) and handle the automatic measurements in the overriden loop. Cheers Leif

felixsteghofer commented 2 years ago

Hi, sry for the delay. Your library actually used loop so. I did not change anything semantically. Just to get the default mqtt example running :)