Skip to content

Commit

Permalink
Berry tasmota.global.tele_period and tasmota.settings.tele_period (
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Jan 22, 2025
1 parent fa4f212 commit b253b34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- I2S command I2sLoop (#22807)
- Berry `serial.read()` read only `n` bytes (#22835)
- Display template for Waveshare ESP32-C6 LCD 1.47 (#22863)
- Berry `tasmota.global.tele_period` and `tasmota.settings.tele_period`

### Breaking Changed

Expand Down
10 changes: 6 additions & 4 deletions tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ extern "C" {

extern const be_ctypes_structure_t be_tasmota_global_struct = {
sizeof(TasmotaGlobal), /* size in bytes */
10, /* number of elements */
11, /* number of elements */
nullptr,
(const be_ctypes_structure_item_t[10]) {
(const be_ctypes_structure_item_t[11]) {
// Warning: fields below need to be in alphabetical order
{ "devices_present", offsetof(TasmotaGlobal_t, devices_present), 0, 0, ctypes_u8, 0 },
{ "energy_driver", offsetof(TasmotaGlobal_t, energy_driver), 0, 0, ctypes_u8, 0 },
Expand All @@ -46,14 +46,15 @@ extern "C" {
{ "seriallog_level", offsetof(TasmotaGlobal_t, seriallog_level), 0, 0, ctypes_u8, 0 },
{ "sleep", offsetof(TasmotaGlobal_t, sleep), 0, 0, ctypes_u8, 0 },
{ "syslog_level", offsetof(TasmotaGlobal_t, syslog_level), 0, 0, ctypes_u8, 0 },
{ "tele_period", offsetof(TasmotaGlobal_t, tele_period), 0, 0, ctypes_u16, 0 },
{ "templog_level", offsetof(TasmotaGlobal_t, templog_level), 0, 0, ctypes_u8, 0 },
}};

extern const be_ctypes_structure_t be_tasmota_settings_struct = {
sizeof(TSettings), /* size in bytes */
10, /* number of elements */
11, /* number of elements */
nullptr,
(const be_ctypes_structure_item_t[10]) {
(const be_ctypes_structure_item_t[11]) {
// Warning: fields below need to be in alphabetical order
{ "bootcount", offsetof(TSettings, bootcount), 0, 0, ctypes_u16, 0 },
{ "light_pixels", 0x496, 0, 15, ctypes_bf, 0 },
Expand All @@ -64,6 +65,7 @@ extern "C" {
{ "seriallog_level", offsetof(TSettings, seriallog_level), 0, 0, ctypes_u8, 0 },
{ "sleep", offsetof(TSettings, sleep), 0, 0, ctypes_u8, 0 },
{ "syslog_level", offsetof(TSettings, syslog_level), 0, 0, ctypes_u8, 0 },
{ "tele_period", offsetof(TSettings, tele_period), 0, 0, ctypes_u16, 0 },
{ "weblog_level", offsetof(TSettings, weblog_level), 0, 0, ctypes_u8, 0 },
}};

Expand Down

0 comments on commit b253b34

Please sign in to comment.