Storing Jquery as a C-string
Posted: Wed Jan 16, 2019 11:38 pm
Had a quick question regarding the "OTA web updater" program.
I would like to be able to use the web-based updater function without internet access, using the ESP32 as an access point and not a client on an existing network.
Basically, I would like to have a firmware bin stored on my phone, have the ESP32 set itself up as a WiFi access point that I can connect to with my phone. Once connected, the ESP32 hosts a webpage with a "choose file" and "upload" button. Then I can just select the stored firmware .bin on my phone, click upload, and the ESP32 does an OTA firmware update directly from my phone without needing internet access and without needing an existing WiFi network.
The OTA web updater example relies on calling the Jquery JavaScript over the internet. Obviously this will not work for me, as it needs to be hosted locally all by the ESP32.
Simply storing "jquery.min.js" in SPIFFS will NOT work for me because it will create lots of issues with my existing firmware distribution/updating setup.
In the OTA Web updater example, the first line of the serverIndex page has:
"<script src='https://ajax.googleapis.com/ajax/libs/j ... '></script>"
I have tried replacing the URL of the Jquery script with all of the JavaScript text that comes up in my browser when I go to that website....but it does not work.
I know its a matter of formatting it correctly...but I cant figure it out...
Thanks
I would like to be able to use the web-based updater function without internet access, using the ESP32 as an access point and not a client on an existing network.
Basically, I would like to have a firmware bin stored on my phone, have the ESP32 set itself up as a WiFi access point that I can connect to with my phone. Once connected, the ESP32 hosts a webpage with a "choose file" and "upload" button. Then I can just select the stored firmware .bin on my phone, click upload, and the ESP32 does an OTA firmware update directly from my phone without needing internet access and without needing an existing WiFi network.
The OTA web updater example relies on calling the Jquery JavaScript over the internet. Obviously this will not work for me, as it needs to be hosted locally all by the ESP32.
Simply storing "jquery.min.js" in SPIFFS will NOT work for me because it will create lots of issues with my existing firmware distribution/updating setup.
In the OTA Web updater example, the first line of the serverIndex page has:
"<script src='https://ajax.googleapis.com/ajax/libs/j ... '></script>"
I have tried replacing the URL of the Jquery script with all of the JavaScript text that comes up in my browser when I go to that website....but it does not work.
I know its a matter of formatting it correctly...but I cant figure it out...
Thanks