-
Hi, i thought it was a good idea to seperate the AutoConnect part from my main Script as it only starts up when i cannot connect to WiFi. Changed the Setup to void setupHotspot() and the loop to void loopserver() with a while loop cuz it's not the main loop() function that will get looped.... Then made the header file //
// AutoConnectHotspot.h
//
//Full Function
void setupHotspot();
void loopserver();`
and called both functions
` Serial.println("WiFi Failed Script");
if (rtc_get_reset_reason(0) == DEEPSLEEP_RESET) {
Serial.println("Rewake after Button Press");
setupHotspot();
loopserver();
} But.... the Serial Monitor only shows squares output. I'm not really a pro at programing, did i take the wrong aproach? or miss something obvious? OWM_EPD47_epaper_v2.9.ino.txt |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is a general programming question, and not an issue related to AutoConnect's library features in the first place. |
Beta Was this translation helpful? Give feedback.
-
@haldi4803 If you post the actual source code just for your convenience, you have very little chance of getting advice. Your post does not take the necessary steps to get advice from others. Tracing code where other libraries are included just for your convenience is not what anyone else likes to do. FYI, your code is calling |
Beta Was this translation helpful? Give feedback.
-
The Problem i went this approach was because i failed to properly integrade the AutoConnect into my script. Somehow threw all other libraries over. Updated to 1.3.4 and took an example from the Hello script and cut it down to be simpler... (seriously, even the simple example is overloaded, that should be renamed for Timezone or such.) Integrated it into my Script and now it works! Thanks. Now that i got that working it's time to get persistence working. Where would be the best Point to save the vlaues? The ACSubmit Apply button would be my first guess. |
Beta Was this translation helpful? Give feedback.
This is a general programming question, and not an issue related to AutoConnect's library features in the first place.
It will be forwarded to Discussions and hope for advice from someone.