aniketker / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Improvement proposal #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by andreas....@googlemail.com on 28 Sep 2012 at 1:48

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

Original comment by tro...@trouch.com on 4 Nov 2012 at 10:44