I recently updated mySQM+ device (built around a Wemos R32) to v132. I routinely switch between a home wifi network and a portable access point built into my OnStep controller, and noticed that while the SQM easily shifts between both networks on startup, the page 5 display always shows mySSID (the default network) and never mySSID_1 (the alternate network), even when the alternate is in use.
After reviewing the code, I made a few small modifications to mysqmplusf_132.ino, display_graphic.cpp, and display_text.cpp. This is to define a new integer variable "mySSIDused", which is set to 0 if mySSID is the network in use, and set to 1 if mySSID_1 is the network in use. When the graphic or text display is generated, mySSID or mySSID_1 is displayed based on this variable.
I have attached the three files with these mods. I'm sure to have neglected some coding standards, but wanted to provide the code in the hope that this functionality could be integrated into a future release.
Hi Ray
Thanks for the code. I have taken a slightly different approcach which I had used in the new myFP2ESP32 code base, where only 1 change is necessary in one file.
This is in the upcoming release 133 which is not yet released for testing (it is waiting on the remote esp32db example code which is nearly done).
In no way does this detract from your code, and I am grateful that you took the time to post it here so that it can assist others. Thanks, it is very much appreciated, and I am sure that it will be taken up by others.
If you would like to be on the test team drop me an email on gmail.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently updated mySQM+ device (built around a Wemos R32) to v132. I routinely switch between a home wifi network and a portable access point built into my OnStep controller, and noticed that while the SQM easily shifts between both networks on startup, the page 5 display always shows mySSID (the default network) and never mySSID_1 (the alternate network), even when the alternate is in use.
After reviewing the code, I made a few small modifications to mysqmplusf_132.ino, display_graphic.cpp, and display_text.cpp. This is to define a new integer variable "mySSIDused", which is set to 0 if mySSID is the network in use, and set to 1 if mySSID_1 is the network in use. When the graphic or text display is generated, mySSID or mySSID_1 is displayed based on this variable.
I have attached the three files with these mods. I'm sure to have neglected some coding standards, but wanted to provide the code in the hope that this functionality could be integrated into a future release.
Thanks!
Hi Ray
Thanks for the code. I have taken a slightly different approcach which I had used in the new myFP2ESP32 code base, where only 1 change is necessary in one file.
This is in the upcoming release 133 which is not yet released for testing (it is waiting on the remote esp32db example code which is nearly done).
This is the snippet of code I am talking about
In no way does this detract from your code, and I am grateful that you took the time to post it here so that it can assist others. Thanks, it is very much appreciated, and I am sure that it will be taken up by others.
If you would like to be on the test team drop me an email on gmail.
Regards
Robert