Tasmota/lib/libesp32/Berry/default/embedded/Driver.be

30 lines
583 B
Plaintext
Raw Normal View History

#- Native code used for testing and code solidification -#
#- Do not use it -#
class Driver
var every_second
var every_100ms
var web_add_handler
var web_add_button
var web_add_main_button
var web_add_management_button
var web_add_config_button
var web_add_console_button
var save_before_restart
var web_sensor
var json_append
var button_pressed
var display
def init()
end
2021-07-29 08:33:39 +01:00
def get_tasmota()
return tasmota
end
def add_cmd(c, f)
tasmota.add_cmd(c, / cmd, idx, payload, payload_json -> f(self, cmd, idx, payload, payload_json))
end
end