Berry add `tasmota.global.devices_present`

This commit is contained in:
Stephan Hadinger 2021-11-29 23:11:25 +01:00
parent 25241e52c2
commit f77f77258f
1 changed files with 3 additions and 2 deletions

View File

@ -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 },
}};