mirror of https://github.com/arendst/Tasmota.git
Berry add `tasmota.global.devices_present`
This commit is contained in:
parent
25241e52c2
commit
f77f77258f
|
@ -33,9 +33,10 @@ extern "C" {
|
|||
|
||||
extern const be_ctypes_structure_t be_tasmota_global_struct = {
|
||||
sizeof(TasmotaGlobal), /* size in bytes */
|
||||
1, /* number of elements */
|
||||
2, /* number of elements */
|
||||
nullptr,
|
||||
(const be_ctypes_structure_item_t[2]) {
|
||||
{ "devices_present", offsetof(TasmotaGlobal_t, devices_present), 0, 0, ctypes_u8, 0 },
|
||||
{ "sleep", offsetof(TasmotaGlobal_t, sleep), 0, 0, ctypes_u8, 0 },
|
||||
}};
|
||||
|
||||
|
@ -43,7 +44,7 @@ extern "C" {
|
|||
sizeof(TSettings), /* size in bytes */
|
||||
1, /* number of elements */
|
||||
nullptr,
|
||||
(const be_ctypes_structure_item_t[2]) {
|
||||
(const be_ctypes_structure_item_t[1]) {
|
||||
{ "sleep", offsetof(TSettings, sleep), 0, 0, ctypes_u8, 0 },
|
||||
}};
|
||||
|
||||
|
|
Loading…
Reference in New Issue