-
Notifications
You must be signed in to change notification settings - Fork 8
Can’t load defaults #15
Comments
You need to explain more clearly, with pictures, debug terminal outputs. It's difficult to guess what you're doing and where you're doing not correctly. @thorathome is the author of the Blynk_WM_Template example. Please help. |
Ok. I didn't ask my question correctly my apologies. I'm using the Blynk WM Template example script that comes with the library in Arduino IDE. The portion of it that I can't figure out is this: /////////////////////////////////////////////////////////////////////////////////////////// I want to input into the code defaults like the Blynk Server, Blynk Server Port, Board Name, but no matter what I specify in the code like this it doesn't show up on the configuration portal fields. I've tried double reset, blynk.clearconfigdata(), recompiling, clearing eeprom, none of it works: http://gut.bz/IMG_0275[2145].PNG
|
@kevinleberge Are you using ESP8266 or ESP32, and EEPROM/SPIFFS or LittleFS? |
Esp8266, littlefs
… On Jun 25, 2020, at 11:56 AM, Khoi Hoang ***@***.***> wrote:
@kevinleberge
Are you using ESP8266 or ESP32, and EEPROM/SPIFFS or LittleFS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@kevinleberge Please try New Blynk_WM v1.0.16 which fixes the |
Default settings are loading into the config portal now! Great. However, it doesn't seem to program settings from portal onto device now. it shows in serial monitor that it's loading default values, not the values submitted on configuration portal.
|
The
|
Hi @khoih-prog Thank you for the continued library development. I am building household control and monitoring apps with your library. I am recompiling the Template sketch with the new library. Same code. (I did add a Any quick thoughts as I dig into this? Thanks again and in advance. THE CODE YOU KNOW
DEBUG TRACE
|
I have no problem at all connecting SSL (to my local Blynk Server) using ESP8266/ESP32. But check that we have modified the
It seems that you might have either wrong tokens (taken from Default Config in sketch). If you turn on After the first boot with It's a little bit confusing now, but I think this what you're expecting. Hopefully you will rewrite the README to explain more clearly to users. |
You don't need this feature now with new v1.0.16, necessary only if you're using v1.0.15 |
Hi @khoih-prog Thanks again for your time and patience. I made a #TrueNoobError with the new WM library loading. Forgot the All is Right With the World on a Friday. I like your approach to LOAD_CONFIG_DATA, thanks. Easier to explain = primarily for development and debugging. I've been saving up a few questions about using the WM Library
I did find some bugs in the non-WM parts of my Blynk_WM_Template and will load the updated code. Again, nice work. Thanks. I'm using WM. |
That's why your README instructions is so important for everybody, even for the PRO like you.
This is helpful for certain people in certain use case. For example, you need 1 sketch for all boards, but thanks to personalized
Not configurable now. You have to modify the library code, but not as simple as just modifying Will think about a simple way to do that, or just use 2 different source files for single set of Credentials. Now making it simpler is not easy ;-(
This is deprecated and is not used now after I used MultiWiFi features (from v1.07 or v1.0.11??), but forgot to delete. Need to clean house from time to time. No incentive and no memory at all until someone reminds !!! ;=}
If we're here but still in configuration_mode, permit running CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET times before reset hardware to permit user another chance to enter Config Portal.
It's up to you. If you can manage time yourself using NTP in SSL, it's good. But not for everybody, especially in many cases, users don't use SSL. IMHO, using RTCWidget is preferable as it's much easier and simpler. |
Totally worked, thank you so much |
To @thorathome and @kevinleberge Your contributions are noted in Contributions and Thanks
|
One last on this one. Either I'm not understanding it correctly, The Blynk VM Template description is wrong or it's not working as intended. Currently it says: /////////////////////////////////////////////////////////////////////////////////////////// Maybe it should say |
Hi @kevinleberge Thanks for the help keeping this example up to date. Yes, you found a bug in the code. It is part of an even LARGER bug that I have now corrected and have posted on my own Github repository. I have also updated comments in the sketch, especially regarding USE_CONFIG_DATA, which has evolved considerably these past weeks. I've also submitted the same code to our benefactor @khoih-prog to post on his official Blynk_WM repository. This is very helpful and much appreciated. Now that I have this code publicly available, I realize that I need to maintain it as the WM library evolves. |
Hi @kevinleberge Just update Blynk_WM_Template to the latest version from @thorathome GitHub Repo. Please have a look and test to see if there is anything not working as expected. |
Glad to help! |
Firstly thank you for such an awesome project.
I’m using the template sketch, and I set the load default config flag to true but I can’t seem to get it to work. No matter what I put in for the default data it doesn’t load it into the config portal. I tried eeprom clear hoping that would help and did double reset but also that didn’t work. What am I doing wrong?
The text was updated successfully, but these errors were encountered: