ok so i did the easiot could switch loaded the file for mqtt. tried three times removing file and such and still getting myMqtt not named when i compile
explicit String(unsigned long, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:68:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'long unsigned int'
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:67:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'long int'
explicit String(unsigned int, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:66:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'unsigned int'
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:65:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'int'
explicit String(unsigned char, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:64:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'unsigned char'
C:\Users\Andy\Documents\Arduino\switch2\switch2.ino: In function 'void myConnectedCb()':
switch2:96: error: 'myMqtt' was not declared in this scope
explicit String(unsigned long, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:68:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'long unsigned int'
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:67:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'long int'
explicit String(unsigned int, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:66:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'unsigned int'
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:65:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'int'
explicit String(unsigned char, unsigned char base = 10);
^
C:\Users\Andy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:64:18: note: no known conversion for argument 1 from 'const uint8_t* {aka const unsigned char*}' to 'unsigned char'
exit status 1
call of overloaded 'String(const uint8_t*&, int)' is ambiguous