Issue #002 [Fixed/closed] - Improvement proposal

Posted by andreas.riegg

When stopping webiopi after having changed any input to an output you get a warning like "RuntimeWarning: This channnel ....." from the RPi.GPIO module when you restart the module.

If you add "RPi.GPIO.cleanup() (or RPi.cleanup() in the latest file in the trunk path) to the code that stops the http server (direct before or after server.stop()) then this waring disappears. This will reset all GPIO settings you change with webiopi, but you do that anyway right now when initializing your module, so this should not be a problem.

Best regards


Comment 1

Posted by trouch

Fixed in WebIOPi 5.0 as it don't use RPi.GPIO anymore, but an included native library.