mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-07-29 18:12:49 +00:00
one command function, to save on heap
This commit is contained in:
@@ -378,7 +378,7 @@ void Mqtt::start() {
|
||||
initialized_ = true;
|
||||
|
||||
// add the 'publish' command ('call system publish' in console or via API)
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F_(publish), System::command_publish, FL_(publish_cmd));
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F_(publish), MAKE_CF_CB(System::command_publish), FL_(publish_cmd));
|
||||
|
||||
#if defined(EMSESP_STANDALONE)
|
||||
Mqtt::on_connect(); // simulate an MQTT connection
|
||||
|
||||
Reference in New Issue
Block a user