Home/Support/Support Forum/Event Logging: How to have get_dio_value return 1 or 0 instead of IOValue.HIGH / LOW
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Event Logging: How to have get_dio_value return 1 or 0 instead of IOValue.HIGH / LOW

0 votes
I am logging events in python... simple IO change of state events.
When I say value = module.get_io_value and log/print the content of value of course you get either IOValue.HIGH or IOValue.LOW.

I want to log a 1 for IOValue.HIGH and a 0 for IOValue.LOW instead. how do I do that. Could use an if statement to filter and rename each time. thoughts? thanks :)
asked Jul 21 in Python by edunn106 New to the Community (22 points)

Please log in or register to answer this question.

...