Open rwatkinsii opened 10 months ago
There's someone else asking the same thing. This compiled last time I tried so I'm guessing something changed in how the Arduino IDE compiles, or rather it is stricter now.
control reaches end of non-void function
that suggests I have sloppy functions which need an else
or similar.
I did manage to get it to compile and upload.
IDE Version: 1.8.18 ArduinoJSON Version: 6.21.1 Install the libraries provided in the project and it compiles without any errors.
Madpsy Do you know if I remove the Bluetooth module can I somehow send CIV data directly into the device via a wire? I purchased the VE2DX Device that connects to Bluetooth and gives 3 CIV outputs.
Hello. No matter how hard I try, even with version 1.8.18, I can't get it. It gives me a lot of errors. I think I'm giving up.
Dont give up! Did you make sure to use the library's that was provided in the zip file?
Okay. No, I didn't do that. Download them, do not use the ones that come in the zip. I do not know how to do it?
I think i found it. Add libraries to the menu from file. But I still have the same errors.
Arduino:1.8.18 (Mac OS X), Tarjeta:"LOLIN(WEMOS) D1 mini (clone), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, DOUT (compatible), 40MHz, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:16:20: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
16 | char ntp_server = "pool.ntp.org";
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:30:24: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
30 | char icom_interface = "hc_05";
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool loadConfig()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:195:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
195 | serialPrintln("Failed to open config file");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:201:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
201 | serialPrintln("Config file size is too large");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:212:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
212 | serialPrintln("Failed to parse config");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool saveConfig()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:241:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
241 | serialPrintln("Failed to open config file for writing");
| ^~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'char MAX3232serialRead(char)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:301:23: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
301 | serialPrintln("Serial timeout");
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:303:16: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
303 | return("");
| ^
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:324:23: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
324 | serialPrintln("");
| ^~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void webServer(bool)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:352:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
352 | serialPrintln("HTTP server started");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:356:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
356 | serialPrintln("HTTP server stopped");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void mqttConnect()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:368:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
368 | serialPrintln("Attempting MQTT connection");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:371:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
371 | serialPrintln("MQTT connected");
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool setupBandData()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:399:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
399 | serialPrintln("Band data pins configured");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:403:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
403 | serialPrintln("Cannot setup band data when any other serial based device is enabled");
| ^~~~~~~~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool setupMAX3232()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:413:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
413 | serialPrint("MAX3232 configured at baudrate ");
| ^~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:418:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
418 | serialPrintln("You must set max3232_enabled to true");
| ^~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:423:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
423 | serialPrintln("Cannot setup MAX3232 when Hermes is enabled");
| ^~~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool setupAmplifier(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:432:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
432 | serialPrintln("Amplifier set to xpa125b");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:437:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
437 | serialPrintln("Amplifier set to xpa125b");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:443:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
443 | serialPrintln("Amplifier set to hardrock50");
| ^~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:448:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
448 | serialPrintln("Failed to set amplifier set to hardrock50");
| ^~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool setupHermes()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:458:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
458 | serialPrintln("Hermes-Lite configured");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:462:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
462 | serialPrintln("Error: Hermes is not enabled and/or max3232 is enabled");
| ^~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setRigctlAddress(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:530:15: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
530 | serialPrint("rigctl_address ");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setRigctlPort(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:539:15: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
539 | serialPrint("rigctl_port ");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool testRigctlServer()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:546:28: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
546 | if ((sendRigctlCommand("t") == "0") || (sendRigctlCommand("t") == "1")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:546:63: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
546 | if ((sendRigctlCommand("t") == "0") || (sendRigctlCommand("t") == "1")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:548:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
548 | serialPrint("Connection to rigctl server succeeded ");
| ^~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:553:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
553 | serialPrint("connection to rigctl succeeded but PTT status failed to return ");
| ^~~~~~~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:563:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
563 | serialPrint("connection to rigctl server failed ");
| ^~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:572:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
572 | serialPrintln("rigctl server not set");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool connectRigctl()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:583:23: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
583 | serialPrintln("rigctl connection success");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:588:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
588 | serialPrintln("rigctl connection failed");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:593:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
593 | serialPrintln("wifi disabled or rigctl address and port not set");
| ^~~~~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'String sendRigctlCommand(char)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:614:27: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
614 | serialPrintln("rigctl timed out");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setRigctlFreq(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:645:18: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
645 | serialPrint("rigctlfreq: ");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setRigMode(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:665:20: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
665 | serialPrint("rigmode ");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setHybrid(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:692:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
692 | serialPrintln("hybrid true");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:696:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
696 | serialPrintln("hybrid false");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setRigctlPtt(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:704:20: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
704 | serialPrintln("Cannot send rigctl PTT event as TX is blocked");
| ^~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:708:18: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
708 | serialPrint("rigctlptt: ");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setMode(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:969:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
969 | serialPrint("mode ");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:973:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
973 | serialPrintln("hybrid mode for PTT is enabled");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setBand(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1093:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1093 | serialPrint("band ");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setFreq(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1161:16: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1161 | serialPrint("frequency ");
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1163:29: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1163 | if (regexMatch(charFreq, "^1......$")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1165:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1165 | } else if (regexMatch(charFreq, "^3......$")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1167:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1167 | } else if (regexMatch(charFreq, "^3......$")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1169:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1169 | } else if (regexMatch(charFreq, "^5......$")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1171:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1171 | } else if (regexMatch(charFreq, "^7......$")) {
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1173:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1173 | } else if (regexMatch(charFreq, "^10......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1175:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1175 | } else if (regexMatch(charFreq, "^14......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1177:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1177 | } else if (regexMatch(charFreq, "^18......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1179:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1179 | } else if (regexMatch(charFreq, "^21......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1181:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1181 | } else if (regexMatch(charFreq, "^24......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1183:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1183 | } else if (regexMatch(charFreq, "^27......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1185:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1185 | } else if (regexMatch(charFreq, "^2[8,9]......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1187:36: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1187 | } else if (regexMatch(charFreq, "^5.......$")) {
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1191:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1191 | serialPrint("No matching band found for ");
| ^~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setState(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1208:22: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1208 | serialPrintln("state rx");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1222:25: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1222 | serialPrintln("state tx");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1228:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1228 | serialPrintln("TX blocked as band is not set");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setMQTT(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1240:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1240 | serialPrintln("MQTT enabled");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1245:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1245 | serialPrintln("MQTT disabled");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void wifi(String)':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1283:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1283 | serialPrint(".");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1287:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1287 | serialPrintln("");
| ^~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1289:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1289 | serialPrint("Connected to ");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1292:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1292 | serialPrint("RSSI ");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1295:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1295 | serialPrint("IP address: ");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1298:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1298 | serialPrint("DNS address: ");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1301:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1301 | serialPrint("Gateway: ");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1304:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1304 | serialPrint("MAC address: ");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1308:23: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1308 | serialPrintln("MDNS responder started as xpa125b[.local]");
| ^~~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1312:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1312 | serialPrintln("NTP client started");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1315:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1315 | serialPrintln("");
| ^~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1317:21: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1317 | serialPrintln("WiFi failed to connect");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1322:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1322 | serialPrintln("WiFi disabled");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void setup()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1480:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1480 | serialPrintln("XPA125B controller started");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1484:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1484 | serialPrintln("Failed to mount file system");
| ^~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1487:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1487 | serialPrintln("Successfully mounted file system");
| ^~~~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1503:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1503 | serialPrintln("Failed to load config");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1506:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1506 | serialPrintln("Config loaded");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1751:15: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1751 | serialPrint("band ");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1754:15: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1754 | serialPrint("frequency ");
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1757:15: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1757 | serialPrint("state ");
| ^~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'void loop()':
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1854:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1854 | serialPrint("txtime ");
| ^~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1870:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1870 | serialPrintln("txblocktimer start");
| ^~~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1892:17: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1892 | serialPrint("txblocktimer ");
| ^~~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1895:19: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1895 | serialPrintln("txblocktimer end");
| ^~~~~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1906:37: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1906 | String f_result=sendRigctlCommand("f");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1910:37: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1910 | String m_result=sendRigctlCommand("m");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino:1916:39: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
1916 | String t_result=sendRigctlCommand("t");
| ^~~
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'char MAX3232serialRead(char)':
d1mini-amp-controller:330:1: error: control reaches end of non-void function [-Werror=return-type]
330 | }
| ^
/Users/joseangel/Downloads/xpa125b_controller-main/d1mini-amp-controller/d1mini-amp-controller.ino: In function 'bool setupAmplifier(String)':
d1mini-amp-controller:452:1: error: control reaches end of non-void function [-Werror=return-type]
452 | }
| ^
cc1plus: some warnings being treated as errors
exit status 1
control reaches end of non-void function [-Werror=return-type]
Este informe podría contener más información con "Mostrar salida detallada durante la compilación" opción habilitada en Archivo -> Preferencias.
Make sure you uninstall the newer library's first. You can also just dump them into the library folder in My Documents. If you want i can help you more over email. You can contact me at kc3pgn@gmail.com and i will send you my number to text will be much easier.
Here the versions of libraries and software, that work for me.
IDE: Arduino IDE 2.3.2
Lib´s: ArduinoMqttClient 0.1.8 NTPClient 3.1.0 ArduinoJson 6.21.1 PubSubClient 2.8 Regexp 0.1.0
esp8266 (in boards manager) 3.0.2 (with higher versions i get the known compiler errors)
Maybe someone can fix the code for the newer versions. Thanks madpsy for your initial work!
73
Looking for assistance with getting your code compiled. I don't think the warnings are preventing it from finishing and uploading just the two errors at the end. My email is kc3pgn@gmail.com and I am thankful for any assistance you can provide. I already have the hardware built and just need to get the code on the board.
C:\Users\K3RAW\Desktop\Amp\xpa125b_controller-main\d1mini_amp_controller_edited\d1mini_amp_controller_edited.ino: In function 'char* MAX3232serialRead(char)': C:\Users\K3RAW\Desktop\Amp\xpa125b_controller-main\d1mini_amp_controller_edited\d1mini_amp_controller_edited.ino:329:1: error: control reaches end of non-void function [-Werror=return-type] 329 | } | ^ C:\Users\K3RAW\Desktop\Amp\xpa125b_controller-main\d1mini_amp_controller_edited\d1mini_amp_controller_edited.ino: In function 'bool setupAmplifier(String)': C:\Users\K3RAW\Desktop\Amp\xpa125b_controller-main\d1mini_amp_controller_edited\d1mini_amp_controller_edited.ino:451:1: error: control reaches end of non-void function [-Werror=return-type] 451 | } | ^ cc1plus.exe: some warnings being treated as errors