dreed47 / WifiMQTTManager

ESP32/ESP8266 library for managing your IoT devices.
GNU General Public License v3.0
82 stars 33 forks source link

error: array used as initializer #18

Closed jsilva-iii closed 3 years ago

jsilva-iii commented 3 years ago

I am using ESP8266 board library 2.7.4, arduino 1.8.13 -I managed to migrate it over to Json6, compile and upload to the board once. I'm not sure what changed, but now I am stuck with the compilation error: WiFiMQTTManager.cpp:11:64: error: array used as initializer WiFiMQTTManager::WiFiMQTTManager(int resetPin, char* APpassword) {

jsilva-iii commented 3 years ago

Hi, please ignore, the issue was with the initialisation of the _mqtt username and password. char _mqtt_username[40] ;//= "YOURMQTTUSERNAME"; char _mqtt_password[40] ;//= "YOURMQTTPASSWORD";