mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Restrict use of HM10 driver to ESP8266 only
This commit is contained in:
parent
47ad6db686
commit
b9f8d0b104
@ -566,16 +566,10 @@
|
|||||||
//#define USE_IBEACON // Add support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
//#define USE_IBEACON // Add support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
||||||
//#define USE_GPS // Add support for GPS and NTP Server for becoming Stratus 1 Time Source (+3k1 code, +132 bytes RAM)
|
//#define USE_GPS // Add support for GPS and NTP Server for becoming Stratus 1 Time Source (+3k1 code, +132 bytes RAM)
|
||||||
// #define USE_FLOG // Add support for GPS logging in OTA's Flash (Experimental) (+2k9 code, +8 bytes RAM)
|
// #define USE_FLOG // Add support for GPS logging in OTA's Flash (Experimental) (+2k9 code, +8 bytes RAM)
|
||||||
#ifdef ESP8266
|
//#define USE_HM10 // (ESP8266 only) Add support for HM-10 as a BLE-bridge (+9k3 code)
|
||||||
// #define USE_HM10 // Add support for HM-10 as a BLE-bridge (+9k3 code)
|
//#define USE_MI_ESP32 // (ESP32 only) Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
||||||
#endif // ESP8266
|
|
||||||
//#define USE_HRXL // Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
//#define USE_HRXL // Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
||||||
|
|
||||||
// -- built-in BLE of the ESP32 --------------------
|
|
||||||
#ifdef ESP32
|
|
||||||
// #define USE_MI_ESP32 // Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
|
||||||
#endif // ESP8266
|
|
||||||
|
|
||||||
// -- Power monitoring sensors --------------------
|
// -- Power monitoring sensors --------------------
|
||||||
#define USE_ENERGY_MARGIN_DETECTION // Add support for Energy Margin detection (+1k6 code)
|
#define USE_ENERGY_MARGIN_DETECTION // Add support for Energy Margin detection (+1k6 code)
|
||||||
#define USE_ENERGY_POWER_LIMIT // Add additional support for Energy Power Limit detection (+1k2 code)
|
#define USE_ENERGY_POWER_LIMIT // Add additional support for Energy Power Limit detection (+1k2 code)
|
||||||
|
@ -146,7 +146,8 @@
|
|||||||
#define USE_RDM6300 // Add support for RDM6300 125kHz RFID Reader (+0k8)
|
#define USE_RDM6300 // Add support for RDM6300 125kHz RFID Reader (+0k8)
|
||||||
#define USE_IBEACON // Add support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
#define USE_IBEACON // Add support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
||||||
//#define USE_GPS // Add support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
//#define USE_GPS // Add support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
||||||
#define USE_HM10 // Add support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
#define USE_HM10 // (ESP8266 only) Add support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
||||||
|
//#define USE_MI_ESP32 // (ESP32 only) Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
||||||
#define USE_HRXL // Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
#define USE_HRXL // Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
||||||
|
|
||||||
#define USE_ENERGY_SENSOR // Add energy sensors (-14k code)
|
#define USE_ENERGY_SENSOR // Add energy sensors (-14k code)
|
||||||
@ -367,7 +368,8 @@
|
|||||||
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
||||||
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
||||||
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
||||||
#undef USE_HM10 // Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
#undef USE_HM10 // (ESP8266 only) Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
||||||
|
#undef USE_MI_ESP32 // (ESP32 only) Disable support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
||||||
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
||||||
|
|
||||||
//#define USE_DHT // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor
|
//#define USE_DHT // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor
|
||||||
@ -467,7 +469,8 @@
|
|||||||
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
||||||
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
||||||
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
||||||
#undef USE_HM10 // Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
#undef USE_HM10 // (ESP8266 only) Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
||||||
|
#undef USE_MI_ESP32 // (ESP32 only) Disable support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
||||||
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
||||||
|
|
||||||
//#undef USE_ENERGY_SENSOR // Disable energy sensors
|
//#undef USE_ENERGY_SENSOR // Disable energy sensors
|
||||||
@ -589,7 +592,8 @@
|
|||||||
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8)
|
||||||
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module)
|
||||||
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM)
|
||||||
#undef USE_HM10 // Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
#undef USE_HM10 // (ESP8266 only) Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code)
|
||||||
|
#undef USE_MI_ESP32 // (ESP32 only) Disable support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
|
||||||
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7)
|
||||||
|
|
||||||
#undef USE_ENERGY_SENSOR // Disable energy sensors
|
#undef USE_ENERGY_SENSOR // Disable energy sensors
|
||||||
|
@ -117,21 +117,6 @@ extern "C" void resetPins();
|
|||||||
#define MESSZ (MQTT_MAX_PACKET_SIZE -TOPSZ -7) // Max number of characters in JSON message string
|
#define MESSZ (MQTT_MAX_PACKET_SIZE -TOPSZ -7) // Max number of characters in JSON message string
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ESP8266
|
|
||||||
#ifndef ARDUINO_ESP8266_RELEASE
|
|
||||||
#define ARDUINO_CORE_RELEASE "STAGE"
|
|
||||||
#else
|
|
||||||
#define ARDUINO_CORE_RELEASE ARDUINO_ESP8266_RELEASE
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifdef ESP32
|
|
||||||
#ifndef ARDUINO_ESP32_RELEASE
|
|
||||||
#define ARDUINO_CORE_RELEASE "STAGE"
|
|
||||||
#else
|
|
||||||
#define ARDUINO_CORE_RELEASE ARDUINO_ESP32_RELEASE
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_PWM_DIMMER_REMOTE
|
#ifdef USE_PWM_DIMMER_REMOTE
|
||||||
#ifdef USE_PWM_DIMMER
|
#ifdef USE_PWM_DIMMER
|
||||||
#ifndef USE_DEVICE_GROUPS
|
#ifndef USE_DEVICE_GROUPS
|
||||||
@ -295,6 +280,32 @@ const char kWebColors[] PROGMEM =
|
|||||||
COLOR_BUTTON_TEXT "|" COLOR_BUTTON "|" COLOR_BUTTON_HOVER "|" COLOR_BUTTON_RESET "|" COLOR_BUTTON_RESET_HOVER "|" COLOR_BUTTON_SAVE "|" COLOR_BUTTON_SAVE_HOVER "|"
|
COLOR_BUTTON_TEXT "|" COLOR_BUTTON "|" COLOR_BUTTON_HOVER "|" COLOR_BUTTON_RESET "|" COLOR_BUTTON_RESET_HOVER "|" COLOR_BUTTON_SAVE "|" COLOR_BUTTON_SAVE_HOVER "|"
|
||||||
COLOR_TIMER_TAB_TEXT "|" COLOR_TIMER_TAB_BACKGROUND "|" COLOR_TITLE_TEXT;
|
COLOR_TIMER_TAB_TEXT "|" COLOR_TIMER_TAB_BACKGROUND "|" COLOR_TITLE_TEXT;
|
||||||
|
|
||||||
|
/*********************************************************************************************\
|
||||||
|
* ESP8266 vs ESP32 related parameters
|
||||||
|
\*********************************************************************************************/
|
||||||
|
|
||||||
|
#ifdef ESP8266
|
||||||
|
|
||||||
|
#ifndef ARDUINO_ESP8266_RELEASE
|
||||||
|
#define ARDUINO_CORE_RELEASE "STAGE"
|
||||||
|
#else
|
||||||
|
#define ARDUINO_CORE_RELEASE ARDUINO_ESP8266_RELEASE
|
||||||
|
#endif // ARDUINO_ESP8266_RELEASE
|
||||||
|
|
||||||
|
#endif // ESP8266
|
||||||
|
|
||||||
|
#ifdef ESP32
|
||||||
|
|
||||||
|
#ifndef ARDUINO_ESP32_RELEASE
|
||||||
|
#define ARDUINO_CORE_RELEASE "STAGE"
|
||||||
|
#else
|
||||||
|
#define ARDUINO_CORE_RELEASE ARDUINO_ESP32_RELEASE
|
||||||
|
#endif // ARDUINO_ESP32_RELEASE
|
||||||
|
|
||||||
|
#undef USE_HM10 // Disable support for HM-10 as a BLE-bridge (+9k3 code) on ESP32
|
||||||
|
|
||||||
|
#endif // ESP32
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Macros
|
* Macros
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
forked - from arendst/tasmota - https://github.com/arendst/Tasmota
|
forked - from arendst/tasmota - https://github.com/arendst/Tasmota
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
#ifdef ESP32 // ESP32 only. Use define USE_HM10 for ESP8266 support
|
||||||
|
|
||||||
#ifdef USE_MI_ESP32
|
#ifdef USE_MI_ESP32
|
||||||
|
|
||||||
#define XSNS_62 62
|
#define XSNS_62 62
|
||||||
@ -1184,4 +1186,5 @@ bool Xsns62(uint8_t function)
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif //USE_MI_ESP32
|
#endif // USE_MI_ESP32
|
||||||
|
#endif // ESP32
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
forked - from arendst/tasmota - https://github.com/arendst/Tasmota
|
forked - from arendst/tasmota - https://github.com/arendst/Tasmota
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
#ifdef ESP8266 // ESP8266 only. Use define USE_MI_ESP32 for ESP32 support
|
||||||
|
|
||||||
#ifdef USE_HM10
|
#ifdef USE_HM10
|
||||||
|
|
||||||
#define XSNS_62 62
|
#define XSNS_62 62
|
||||||
@ -1286,4 +1288,5 @@ bool Xsns62(uint8_t function)
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif //USE_HM10
|
#endif // USE_HM10
|
||||||
|
#endif // ESP8266
|
Loading…
x
Reference in New Issue
Block a user