Hallo,
ich habe ein Problem beim erstellen der Firmware mit beiden Emulationen Hue und Wemo.
- mit Wemo alleine funktioniert immer Problemlos
- wenn ich HUE dazu haben möchte bekomme ich immer Fehlermeldungen beim kompilieren.
Meine Software ist Visual Studio Code mit Platformio.
Fehler ist immer:
Processing tasmota-DE (platform: espressif8266@2.3.0; framework: arduino; board: esp01_1m)
----------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 2.3.0 > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES: toolchain-xtensa 2.40802.191122 (4.8.2), framework-arduinoespressif8266 2.20601.191124 (2.6.1), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0)
Converting tasmota.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 69 compatible libraries
Scanning dependencies...
^
Linking .pioenvs\tasmota-DE\firmware.elf
c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o:(.text._Z7PollUdpv+0x1c): undefined reference to `HueRespondToMSearch()'
c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o:(.text._Z14HandleNotFoundv+0x14): undefined reference to `HandleHueApi(String*)'
c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o: in function `HandleNotFound()':
tasmota.ino.cpp:(.text._Z14HandleNotFoundv+0xcf): undefined reference to `HandleHueApi(String*)'
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\tasmota-DE\firmware.elf] Error 1
===================================================== [FAILED] Took 34.48 seconds =====================================================
Environment Status Duration
---------------- -------- ------------
tasmota-DE FAILED 00:00:34.477
================================================ 1 failed, 0 succeeded in 00:00:34.477 ================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Alles anzeigen
So sieht meine user_config_override aus:
wenn es nicht funktioniert
ZitatAlles anzeigen// -- Master parameter control -------------------
#undef CFG_HOLDER
#define CFG_HOLDER 4626 // [Reset 1] Ändern Sie diesen Wert, um die Konfigurationsparameter von ABSCHNITT 1 zu laden und zu flashen
// -- Setup your own Wifi 1 settings ------------
#undef STA_SSID1
#define STA_SSID1 "xxxxxxxxxxxxxxxx" // [Ssid1] Wifi SSID
#undef STA_PASS1
#define STA_PASS1 "xxxxxxxxxxxxxxxxx" // [Password1] Wifi password
// -- Setup your own Wifi 2 settings ------------
#undef STA_SSID2
#define STA_SSID2 "" // [Ssid2] Wifi SSID
#undef STA_PASS2
#define STA_PASS2 "" // [Password2] Wifi password
// -- Location -----------------------------------
#undef LATITUDE
#define LATITUDE xxxxxxxxxxxxx // [Latitude] Ihr Standort für Sonnenaufgang und Sonnenuntergang
#undef LONGITUDE
#define LONGITUDE xxxxxxxxxxx // [Longitude] Ihr Standort für Sonnenaufgang und Sonnenuntergang
// -- Timezone -----------------------------------
#undef APP_TIMEZONE
#define APP_TIMEZONE 99
// -- Localization -------------------------------
#undef MY_LANGUAGE
#define MY_LANGUAGE de-DE // German in Germany
// -- Serial sensors -----------------------------
//#define USE_SML_M // Add support für Smart Message Language (SmartMetering für Stromzähler Xsns_53_SML)
// -- FRIENDLY_NAME ------------------------------
#undef FRIENDLY_NAME
#define FRIENDLY_NAME "Temperaturfuehler"
// -- um scripter zu verwenden -------------------
#undef USE_RULES
#define USE_SCRIPT
// -- WEB_Display --------------------------------
#define USE_SCRIPT_WEB_DISPLAY
// -- WEB_Display zu MQTT-------------------------
#define USE_SCRIPT_JSON_EXPORT
// -- Debug E-Mail Port Serial ------------------
//#define DEBUG_EMAIL_PORT Serial
//--SENDMAIL Einstellungen: ----------------------
#define USE_SENDMAIL
#define EMAIL_USER "xxxxxxxxxxxx@gmail.com"
#define EMAIL_PASSWORD "xxxxxxxxxxxxx"
#define EMAIL_FROM "<xxxxxxxxxxxxxxx@gmail.com>"
#define EMAIL_SERVER "smtp.gmail.com"
#define EMAIL_PORT 465
#define MAIL_TIMEOUT 1000
//------------------------------------------------
//#undef USE_TIMERS
//#undef USE_TIMERS_WEBINTERFACE
//#undef USE_COUNTER
//#undef USE_ENERGY_SENSOR
//#undef USE_BMP
//#undef USE_EMULATION
//#undef USE_EMULATION_WEMO
//#undef USE_EMULATION_HUE
#undef USE_DISPLAY_MODES1TO5 // Enable display mode 1 to 5 in addition to mode 0
#undef USE_DISPLAY_LCD
#undef USE_DISPLAY_MATRIX
#undef USE_LM75AD
#undef USE_SHT // Add I2C emulating code for SHT1X sensor (+1k4 code)
#undef USE_HTU // Add I2C code for HTU21/SI7013/SI7020/SI7021 sensor (+1k5 code)
#undef USE_BME680 // Add additional support for BME680 sensor using Adafruit Sensor and BME680 libraries (+6k code)
#undef USE_BH1750
#undef USE_MHZ19
#undef USE_SENSEAIR
#undef USE_PMS5003
#undef USE_IR_RECEIVE
#undef USE_WS2812
#undef USE_ARILUX_RF
#undef USE_NOVA_SDS
#undef USE_DOMOTICZ
#undef USE_HOME_ASSISTANT
#undef USE_DISCOVERY
#undef USE_DS18x20
#undef USE_SERIAL_BRIDGE
#undef USE_PZEM004T
#undef USE_SHT3X
#undef USE_SGP30
#undef USE_SPS0
#undef USE_SCD30
#undef USE_MLX90614
#undef USE_PZEM2
#undef USE_RF_FLASH
#undef USE_APDS9960
#undef USE_ADE7953
#undef USE_DHT
#undef USE_TX20_WIND_SENSOR
#undef USE_IR_REMOTE
#undef USE_KNX
#undef USE_PCA9685
#undef USE_TUYA_DIMMER
#undef USE_RC_SWITCH
#undef USE_ARMTRONIX_DIMMERS
#undef USE_PS_16_DZ
#undef USE_SONOFF_IFAN
#undef USE_LIGHT
#undef USE_HX711
#undef USE_CSE7766
#undef USE_SR04
#undef USE_DS18x20
#undef USE_DS18B20
#undef USE_DS18x20_LEGACY
#undef USE_DS1820
#undef USE_PZEM004T
#undef USE_PZEM_AC
#undef USE_PZEM_DC
//----------------------------------------------------
#endif // _USER_CONFIG_OVERRIDE_H_
so wenn es funktioniert
Zitat//#undef USE_EMULATION
//#undef USE_EMULATION_WEMO
#undef USE_EMULATION_HUE