Hello Robert
My SQM has been working for two years (very well) with firmware 139-03, and I wanted to update to the new version 141-03
and...oops, a compilation problem that I can't resolve.
I've attached the compilation error.
Thank you in advance for your help.
Sincerely,
Phil
E:\Documents\Arduino\mysqmplus_141-03\rtc.cpp: In member function 'bool REAL_TIME_CLOCK::start_rtc()':
rtc.cpp:171:7: error: 'rtc_battery' was not declared in this scope
if (rtc_battery == false) {
^~~~~~~~~~~
E:\Documents\Arduino\mysqmplus_141-03\rtc.cpp:171:7: note: suggested alternative: 'rtc_date'
if (rtc_battery == false) {
^~~~~~~~~~~
rtc_date
............
exit status 1
'rtc_battery' was not declared in this scope
Hello Bob,
Thank you very much.
The compilation problem is fixed.
Everything works. Only the MQTT server refuses to start with MQTT_CONNECT_FAILED as the status.
Maybe I configured it incorrectly.
Sincerely,
Philippe
How is the Broker set up? What Broker are you using?
I have the mosquitto broker running on my PC. I can see in services its running,
I can open mqtt(fx) to access the broker and subscribe to the broker as well as mysqm+
Some things to check
Are you using authentication on the broker. If you are then the name and password must be set correctly ans authentication enabled on the mqtt page.
IP address of broker. You set it to 192.168.2.133
I think that is the default (same as mine), is there a mqtt server/broker running on that IP address? Or is the MQTT service running on a different computer?
Regards
Robert
PS.
I have recently started work on the next update for mysqm+
It will run on latest Arduino IDE and ESP Core 3.2.0 with a new uploader.
Last edit: brownrb 2025-04-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Robert Okay, everything works.
I forgot to specify the broker's IP address....!
However, I couldn't change the address in server management. I had to modify the mqtt_define file.
Sincerely,
Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Robert
My SQM has been working for two years (very well) with firmware 139-03, and I wanted to update to the new version 141-03
and...oops, a compilation problem that I can't resolve.
I've attached the compilation error.
Thank you in advance for your help.
Sincerely,
Phil
E:\Documents\Arduino\mysqmplus_141-03\rtc.cpp: In member function 'bool REAL_TIME_CLOCK::start_rtc()':
rtc.cpp:171:7: error: 'rtc_battery' was not declared in this scope
if (rtc_battery == false) {
^~~~~~~~~~~
E:\Documents\Arduino\mysqmplus_141-03\rtc.cpp:171:7: note: suggested alternative: 'rtc_date'
if (rtc_battery == false) {
^~~~~~~~~~~
rtc_date
............
exit status 1
'rtc_battery' was not declared in this scope
I will take a look and get back to you with a solution, shortly
Please replace the existing files with these
Hello Bob,
Thank you very much.
The compilation problem is fixed.
Everything works. Only the MQTT server refuses to start with MQTT_CONNECT_FAILED as the status.
Maybe I configured it incorrectly.
Sincerely,
Philippe
How is the Broker set up? What Broker are you using?
I have the mosquitto broker running on my PC. I can see in services its running,
I can open mqtt(fx) to access the broker and subscribe to the broker as well as mysqm+
Some things to check
Are you using authentication on the broker. If you are then the name and password must be set correctly ans authentication enabled on the mqtt page.
IP address of broker. You set it to 192.168.2.133
I think that is the default (same as mine), is there a mqtt server/broker running on that IP address? Or is the MQTT service running on a different computer?
Regards
Robert
PS.
I have recently started work on the next update for mysqm+
It will run on latest Arduino IDE and ESP Core 3.2.0 with a new uploader.
Last edit: brownrb 2025-04-24
Hello Robert Okay, everything works.
I forgot to specify the broker's IP address....!
However, I couldn't change the address in server management. I had to modify the mqtt_define file.
Sincerely,
Phil