mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Shrinked tasmota-minimal.bin by 34k
ESP8266 Shrinked tasmota-minimal.bin by removing all commands except ``Upgrade``, ``Upload``, ``OtaUrl``, ``Seriallog``, ``Weblog`` and ``Restart``
This commit is contained in:
parent
c670311bce
commit
40680036a6
@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
|
||||
- NeoPool remove ambiguous device color names
|
||||
- Display of energy values in GUI use columns when define ``USE_ENERGY_COLUMN_GUI`` is enabled (default)
|
||||
- IRremoteESP8266 library from v2.8.1 to v2.8.2
|
||||
- ESP8266 Shrinked tasmota-minimal.bin by removing all commands except ``Upgrade``, ``Upload``, ``OtaUrl``, ``Seriallog``, ``Weblog`` and ``Restart``
|
||||
|
||||
### Fixed
|
||||
- NeoPool NPBit and NPRead/NPReadL output
|
||||
|
@ -135,6 +135,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo
|
||||
- Removed command ``Sensor33`` and replaced by ``RtcNtpserver``
|
||||
- DS3231 I2C address define ``USE_RTC_ADDR`` into ``DS3231_ADDRESS``
|
||||
- Display of energy values in GUI use columns when define ``USE_ENERGY_COLUMN_GUI`` is enabled (default)
|
||||
- ESP8266 Shrinked tasmota-minimal.bin by removing all commands except ``Upgrade``, ``Upload``, ``OtaUrl``, ``Seriallog``, ``Weblog`` and ``Restart``
|
||||
- ESP32 Arduino core from v2.0.2.2 to v2.0.2.3
|
||||
- ESP32 LVGL library from v8.1.0 to v8.2.0
|
||||
- ESP32 NimBLE library from v1.3.3 to v1.3.6
|
||||
|
@ -21,8 +21,10 @@ const char kTasmotaCommands[] PROGMEM = "|" // No prefix
|
||||
// SetOptions synonyms
|
||||
D_SO_WIFINOSLEEP "|"
|
||||
// Other commands
|
||||
D_CMND_BACKLOG "|" D_CMND_DELAY "|" D_CMND_POWER "|" D_CMND_STATUS "|" D_CMND_STATE "|" D_CMND_SLEEP "|" D_CMND_UPGRADE "|" D_CMND_UPLOAD "|" D_CMND_OTAURL "|"
|
||||
D_CMND_SERIALLOG "|" D_CMND_RESTART "|" D_CMND_POWERONSTATE "|" D_CMND_PULSETIME "|" D_CMND_BLINKTIME "|" D_CMND_BLINKCOUNT "|" D_CMND_SAVEDATA "|"
|
||||
D_CMND_UPGRADE "|" D_CMND_UPLOAD "|" D_CMND_OTAURL "|" D_CMND_SERIALLOG "|" D_CMND_RESTART "|"
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
D_CMND_BACKLOG "|" D_CMND_DELAY "|" D_CMND_POWER "|" D_CMND_STATUS "|" D_CMND_STATE "|" D_CMND_SLEEP "|"
|
||||
D_CMND_POWERONSTATE "|" D_CMND_PULSETIME "|" D_CMND_BLINKTIME "|" D_CMND_BLINKCOUNT "|" D_CMND_SAVEDATA "|"
|
||||
D_CMND_SO "|" D_CMND_SETOPTION "|" D_CMND_TEMPERATURE_RESOLUTION "|" D_CMND_HUMIDITY_RESOLUTION "|" D_CMND_PRESSURE_RESOLUTION "|" D_CMND_POWER_RESOLUTION "|"
|
||||
D_CMND_VOLTAGE_RESOLUTION "|" D_CMND_FREQUENCY_RESOLUTION "|" D_CMND_CURRENT_RESOLUTION "|" D_CMND_ENERGY_RESOLUTION "|" D_CMND_WEIGHT_RESOLUTION "|"
|
||||
D_CMND_MODULE "|" D_CMND_MODULES "|" D_CMND_GPIO "|" D_CMND_GPIOS "|" D_CMND_TEMPLATE "|" D_CMND_PWM "|" D_CMND_PWMFREQUENCY "|" D_CMND_PWMRANGE "|"
|
||||
@ -46,6 +48,7 @@ const char kTasmotaCommands[] PROGMEM = "|" // No prefix
|
||||
#ifdef ESP32
|
||||
"|Info|" D_CMND_TOUCH_CAL "|" D_CMND_TOUCH_THRES "|" D_CMND_TOUCH_NUM "|" D_CMND_CPU_FREQUENCY
|
||||
#endif // ESP32
|
||||
#endif //FIRMWARE_MINIMAL
|
||||
;
|
||||
|
||||
SO_SYNONYMS(kTasmotaSynonyms,
|
||||
@ -53,8 +56,10 @@ SO_SYNONYMS(kTasmotaSynonyms,
|
||||
);
|
||||
|
||||
void (* const TasmotaCommand[])(void) PROGMEM = {
|
||||
&CmndBacklog, &CmndDelay, &CmndPower, &CmndStatus, &CmndState, &CmndSleep, &CmndUpgrade, &CmndUpgrade, &CmndOtaUrl,
|
||||
&CmndSeriallog, &CmndRestart, &CmndPowerOnState, &CmndPulsetime, &CmndBlinktime, &CmndBlinkcount, &CmndSavedata,
|
||||
&CmndUpgrade, &CmndUpgrade, &CmndOtaUrl, &CmndSeriallog, &CmndRestart,
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
&CmndBacklog, &CmndDelay, &CmndPower, &CmndStatus, &CmndState, &CmndSleep,
|
||||
&CmndPowerOnState, &CmndPulsetime, &CmndBlinktime, &CmndBlinkcount, &CmndSavedata,
|
||||
&CmndSetoption, &CmndSetoption, &CmndTemperatureResolution, &CmndHumidityResolution, &CmndPressureResolution, &CmndPowerResolution,
|
||||
&CmndVoltageResolution, &CmndFrequencyResolution, &CmndCurrentResolution, &CmndEnergyResolution, &CmndWeightResolution,
|
||||
&CmndModule, &CmndModules, &CmndGpio, &CmndGpios, &CmndTemplate, &CmndPwm, &CmndPwmfrequency, &CmndPwmrange,
|
||||
@ -78,6 +83,7 @@ void (* const TasmotaCommand[])(void) PROGMEM = {
|
||||
#ifdef ESP32
|
||||
, &CmndInfo, &CmndTouchCal, &CmndTouchThres, &CmndTouchNum, &CmndCpuFrequency
|
||||
#endif // ESP32
|
||||
#endif //FIRMWARE_MINIMAL
|
||||
};
|
||||
|
||||
const char kWifiConfig[] PROGMEM =
|
||||
|
@ -3300,6 +3300,8 @@ const char kWebCmndStatus[] PROGMEM = D_JSON_DONE "|" D_JSON_WRONG_PARAMETERS "|
|
||||
;
|
||||
|
||||
const char kWebCommands[] PROGMEM = "|" // No prefix
|
||||
D_CMND_WEBLOG "|"
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
D_CMND_WEBTIME "|"
|
||||
#ifdef USE_EMULATION
|
||||
D_CMND_EMULATION "|"
|
||||
@ -3307,7 +3309,7 @@ const char kWebCommands[] PROGMEM = "|" // No prefix
|
||||
#if defined(USE_SENDMAIL) || defined(USE_ESP32MAIL)
|
||||
D_CMND_SENDMAIL "|"
|
||||
#endif
|
||||
D_CMND_WEBSERVER "|" D_CMND_WEBPASSWORD "|" D_CMND_WEBLOG "|" D_CMND_WEBREFRESH "|" D_CMND_WEBSEND "|" D_CMND_WEBQUERY "|"
|
||||
D_CMND_WEBSERVER "|" D_CMND_WEBPASSWORD "|" D_CMND_WEBREFRESH "|" D_CMND_WEBSEND "|" D_CMND_WEBQUERY "|"
|
||||
D_CMND_WEBCOLOR "|" D_CMND_WEBSENSOR "|" D_CMND_WEBBUTTON
|
||||
#ifdef USE_WEBGETCONFIG
|
||||
"|" D_CMND_WEBGETCONFIG
|
||||
@ -3315,9 +3317,12 @@ const char kWebCommands[] PROGMEM = "|" // No prefix
|
||||
#ifdef USE_CORS
|
||||
"|" D_CMND_CORS
|
||||
#endif
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
;
|
||||
|
||||
void (* const WebCommand[])(void) PROGMEM = {
|
||||
&CmndWeblog,
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
&CmndWebTime,
|
||||
#ifdef USE_EMULATION
|
||||
&CmndEmulation,
|
||||
@ -3325,7 +3330,7 @@ void (* const WebCommand[])(void) PROGMEM = {
|
||||
#if defined(USE_SENDMAIL) || defined(USE_ESP32MAIL)
|
||||
&CmndSendmail,
|
||||
#endif
|
||||
&CmndWebServer, &CmndWebPassword, &CmndWeblog, &CmndWebRefresh, &CmndWebSend, &CmndWebQuery,
|
||||
&CmndWebServer, &CmndWebPassword, &CmndWebRefresh, &CmndWebSend, &CmndWebQuery,
|
||||
&CmndWebColor, &CmndWebSensor, &CmndWebButton
|
||||
#ifdef USE_WEBGETCONFIG
|
||||
, &CmndWebGetConfig
|
||||
@ -3333,6 +3338,7 @@ void (* const WebCommand[])(void) PROGMEM = {
|
||||
#ifdef USE_CORS
|
||||
, &CmndCors
|
||||
#endif
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
};
|
||||
|
||||
/*********************************************************************************************\
|
||||
|
@ -45,6 +45,7 @@ WiFiClient EspClient; // Wifi Client - non-TLS
|
||||
#endif // USE_MQTT_AZURE_IOT
|
||||
|
||||
const char kMqttCommands[] PROGMEM = "|" // No prefix
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
// SetOption synonyms
|
||||
D_SO_MQTTJSONONLY "|"
|
||||
#ifdef USE_MQTT_TLS
|
||||
@ -65,7 +66,9 @@ const char kMqttCommands[] PROGMEM = "|" // No prefix
|
||||
D_CMND_MQTTHOST "|" D_CMND_MQTTPORT "|" D_CMND_MQTTRETRY "|" D_CMND_STATETEXT "|" D_CMND_MQTTCLIENT "|"
|
||||
D_CMND_FULLTOPIC "|" D_CMND_PREFIX "|" D_CMND_GROUPTOPIC "|" D_CMND_TOPIC "|" D_CMND_PUBLISH "|" D_CMND_MQTTLOG "|"
|
||||
D_CMND_BUTTONTOPIC "|" D_CMND_SWITCHTOPIC "|" D_CMND_BUTTONRETAIN "|" D_CMND_SWITCHRETAIN "|" D_CMND_POWERRETAIN "|"
|
||||
D_CMND_SENSORRETAIN "|" D_CMND_INFORETAIN "|" D_CMND_STATERETAIN ;
|
||||
D_CMND_SENSORRETAIN "|" D_CMND_INFORETAIN "|" D_CMND_STATERETAIN
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
;
|
||||
|
||||
SO_SYNONYMS(kMqttSynonyms,
|
||||
90,
|
||||
@ -76,6 +79,7 @@ SO_SYNONYMS(kMqttSynonyms,
|
||||
);
|
||||
|
||||
void (* const MqttCommand[])(void) PROGMEM = {
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
#if defined(USE_MQTT_TLS)
|
||||
&CmndMqttFingerprint,
|
||||
#endif
|
||||
@ -89,7 +93,9 @@ void (* const MqttCommand[])(void) PROGMEM = {
|
||||
&CmndMqttHost, &CmndMqttPort, &CmndMqttRetry, &CmndStateText, &CmndMqttClient,
|
||||
&CmndFullTopic, &CmndPrefix, &CmndGroupTopic, &CmndTopic, &CmndPublish, &CmndMqttlog,
|
||||
&CmndButtonTopic, &CmndSwitchTopic, &CmndButtonRetain, &CmndSwitchRetain, &CmndPowerRetain, &CmndSensorRetain,
|
||||
&CmndInfoRetain, &CmndStateRetain };
|
||||
&CmndInfoRetain, &CmndStateRetain
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
};
|
||||
|
||||
struct MQTT {
|
||||
uint16_t connect_count = 0; // MQTT re-connect count
|
||||
|
Loading…
x
Reference in New Issue
Block a user