arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.97k stars 4.77k forks source link

#define USE_WEBSEND_RESPONSE leads to build error for xdrv_10_scripter.ino:2405:36: cannot convert 'String' to 'char*' in initialization #12519

Closed nikvostro closed 3 years ago

nikvostro commented 3 years ago

PROBLEM DESCRIPTION

master 9.5.0 and development builds gives an error (failing) during the build with env:tasmota32 when adding #define USE_WEBSEND_RESPONSE in user_config_override.h "../xdrv_10_scripter.ino:2405:36: error: cannot convert 'String' to 'char*' in initialization"

REQUESTED INFORMATION

TO REPRODUCE

  1. Add in user_config_override.h:
    
    #ifdef USE_RULES
    #undef USE_RULES
    #endif

ifndef USE_SCRIPT

define USE_SCRIPT

endif

#define USE_WEBSEND_RESPONSE



2. Build with env:tasmota32

### EXPECTED BEHAVIOUR
Build completes successfully

### SCREENSHOTS
![image](https://user-images.githubusercontent.com/83143316/123963722-69149380-d9bb-11eb-8ad0-cc76120c8fea.png)
![image](https://user-images.githubusercontent.com/83143316/123963739-6dd94780-d9bb-11eb-93e9-430ae66f7c58.png)

### ADDITIONAL CONTEXT
@Jason2866 

**(Please, remember to close the issue when the problem has been addressed)**
Jason2866 commented 3 years ago

@gemu2015 can you have a look? Thx!