openenergymonitor / emonhub

Python service linking and decoding input to MQTT & Emoncms
90 stars 83 forks source link

Fix crash in EmonHubMqttInterfacer.py when sending via RF #210

Closed alandpearson closed 7 months ago

alandpearson commented 7 months ago

A typo appears to have made in my last commit 2 years ago, which somehow(!) went unnoticed. This causes EmonHubMqttInterfacer.py to crash when using RF send functionality (used for emonPiGLCD). I noticed when I did a full update to Feb2024 emonSD:

msg.payload,decode() should be msg.payload.decode() (note , instead of .)

Rebased EmonHubMqttInterfacer.py in this branch to the one found in 'master' & 'stable'

It may be easier to simply take only EmonHubMqttInterfacer.py manually from this pull request and apply manually the fix to master...