def plugin_write(self, cmd): res = False cmdarr = cmd.split(",") cmdarr[0] = cmdarr[0].strip().lower() if cmdarr[0].strip().lower() in gpiohelper.commandlist: res = gpiohelper.gpio_commands(cmd) return res
def plugin_write(self, cmd): res = False cmdarr = cmd.split(",") cmdarr[0] = cmdarr[0].strip().lower() if cmdarr[0].strip().lower() in ["gpio", "pwm", "pulse", "longpulse"]: res = gpiohelper.gpio_commands(cmd) return res