Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

GPIO Output update #31

Closed
wants to merge 6 commits into from
Closed

GPIO Output update #31

wants to merge 6 commits into from

Conversation

datafx
Copy link
Contributor

@datafx datafx commented Oct 3, 2018

Fix for issue #25 and move GPIO output pin configuration out of the main script and into the ini.

datafx added 2 commits October 2, 2018 21:12
Fix for issue #25.  Moved GPIO output pins config from script to ini.
Config update for script changes.
mqtt-gpio-monitor.py Outdated Show resolved Hide resolved
@datafx
Copy link
Contributor Author

datafx commented Oct 5, 2018

Ok, I think I have it fixed this time. I bought a new raspberry pi to test so I didn't have to pull my setup apart (for science!). You can now configure your output pins through the INI and they are all initialized properly as input or output pins. My log file now shows the following and I'm able to control the outputs via MQTT.
2018-10-05 09:19:32,977 DEBUG Initialising GPIO input pin 10...
2018-10-05 09:19:32,979 DEBUG Initialising GPIO output pin 8...
2018-10-05 09:19:33,310 INFO Connected to xxx.xxx.xxx.xxx:8883
2018-10-05 09:19:33,335 DEBUG Incoming message for pin 8 -> 0
2018-10-05 09:19:38,787 DEBUG Incoming message for pin 8 -> 1
2018-10-05 09:19:40,738 DEBUG Incoming message for pin 8 -> 0

@datafx datafx closed this Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants