Closed Elch2000 closed 2 years ago
Hey @Elch2000 did you close this because you found the issue? What was the problem in the end?
Hi @CrazyIvan359,
I have a completely other problem: Sending an ON command to led-2 does not turn on the LED. So MQTTany was completely right when polling the state... I did not find the problem yet. And currently no idea how to fix this :(
Cheers
Hi @CrazyIvan359,
it looks like the MQTTany instance does not recognize MQTT commands in spite of being registered to the broker correctly.
To rule out a hardware or OS related problem I installed another application (MQTT IO, https://mqtt-io.app) on the same hardware (Pi4B). This application toggles a LED flawlessly when it receives a corespondending MQTT command.
What do you suggest for fixing this problem? Reopen this issue? Or anything else?
Cheers
-----Ursprüngliche Nachricht----- Von: Michael @.> Gesendet: Montag 8. November 2021 4:27 An: CrazyIvan359/mqttany @.> CC: Ingo Böhmer @.>; Mention @.> Betreff: Re: [CrazyIvan359/mqttany] deleted (Issue #127)
Hey @Elch2000 did you close this because you found the issue? What was the problem in the end?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/CrazyIvan359/mqttany/issues/127#issuecomment-962779800", "url": "https://github.com/CrazyIvan359/mqttany/issues/127#issuecomment-962779800", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Without more details my guess would be wrong MQTT topic. Looking at your log it should be raspberrypi/gpio/led-2/set
to command led-2
.
Hi,
you are right! I forgot to append "/set". AAARGH. Sorry for disturbing you...
Thank you for pointing to that.
Cheers
-----Ursprüngliche Nachricht----- Von: Michael @.> Gesendet: Donnerstag 11. November 2021 13:01 An: CrazyIvan359/mqttany @.> CC: Ingo Böhmer @.>; Mention @.> Betreff: Re: [CrazyIvan359/mqttany] deleted (Issue #127)
Without more details my guess would be wrong MQTT topic. Looking at your log it should be raspberrypi/gpio/led-2/set to command led-2.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/CrazyIvan359/mqttany/issues/127#issuecomment-966245576", "url": "https://github.com/CrazyIvan359/mqttany/issues/127#issuecomment-966245576", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Describe the bug
Polling GPIO states resets the state to off of output pins
Expected behavior
Polling reads the current state and does not modify the state
Environment
Logs
"led-2" was ON but after polling cycle it turned OFF. This behavior has been reproduced on every output port (led-0 .. led-3). When the polling interval is set to 0 led-2 stays turned on.
Please let me know if more information is required.
Cheers