mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
auto-formatting
This commit is contained in:
28
src/mqtt.cpp
28
src/mqtt.cpp
@@ -788,20 +788,20 @@ bool Mqtt::publish_system_ha_sensor_config(uint8_t type, const char * name, cons
|
|||||||
// MQTT discovery configs
|
// MQTT discovery configs
|
||||||
// entity must match the key/value pair in the *_data topic
|
// entity must match the key/value pair in the *_data topic
|
||||||
// note: some extra string copying done here, it looks messy but does help with heap fragmentation issues
|
// note: some extra string copying done here, it looks messy but does help with heap fragmentation issues
|
||||||
bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdevice::DeviceValueType
|
bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdevice::DeviceValueType
|
||||||
uint8_t tag, // EMSdevice::DeviceValueTAG
|
uint8_t tag, // EMSdevice::DeviceValueTAG
|
||||||
const char * const fullname, // fullname, already translated
|
const char * const fullname, // fullname, already translated
|
||||||
const char * const en_name, // original name in english
|
const char * const en_name, // original name in english
|
||||||
const uint8_t device_type, // EMSdevice::DeviceType
|
const uint8_t device_type, // EMSdevice::DeviceType
|
||||||
const char * const entity, // same as shortname
|
const char * const entity, // same as shortname
|
||||||
const uint8_t uom, // EMSdevice::DeviceValueUOM (0=NONE)
|
const uint8_t uom, // EMSdevice::DeviceValueUOM (0=NONE)
|
||||||
const bool remove, // true if we want to remove this topic
|
const bool remove, // true if we want to remove this topic
|
||||||
const bool has_cmd,
|
const bool has_cmd,
|
||||||
const char * const ** options,
|
const char * const ** options,
|
||||||
uint8_t options_size,
|
uint8_t options_size,
|
||||||
const int16_t dv_set_min,
|
const int16_t dv_set_min,
|
||||||
const uint32_t dv_set_max,
|
const uint32_t dv_set_max,
|
||||||
const int8_t num_op,
|
const int8_t num_op,
|
||||||
const JsonObjectConst dev_json) {
|
const JsonObjectConst dev_json) {
|
||||||
// ignore if name (fullname) is empty
|
// ignore if name (fullname) is empty
|
||||||
if (!fullname || !en_name) {
|
if (!fullname || !en_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user