I am using a ExpanderPi port for a control application that runs continuously and control the climate in a greenhouse. The IO Ports is setup for different output. I am using C++.
When I start my application, everything works as expected, but after approximately 30 hours it stops working. I have tried to debug the application and have found that it actually gives this error message “Failed to open i2c port for write”. The io_write_pin is used in a try-catch block and the program continue, but the ports seems not to be working any longer. After the first error the error continuous so that the application doesn’t work any longer..
Do you have any ideas of why it stops working after running more than a day?
Is it possible to reset the io-ports when the error occur?