Code Monkey home page Code Monkey logo

Comments (5)

Onno-Dirkzwager avatar Onno-Dirkzwager commented on June 15, 2024

Hi @yknivag
I must have missed you on Discord. Good questions!

  • For the config pages. We made an hybrid cloud webapp. This gets the css, js and most of html pages from the IAS "cloud". And first time devices also use the browser to setup an httpS connection for device registration. (your browser acts as a relay between IAS and your esp) When in "captive portal" mode the browser only has access to the esp and not to the internet. In a future release we will give you the option to use a static SPIFFS version of the config pages which might (depending on features) be able to run in the "captive portal"

  • Currently there is no fallback. You are right about the compile time option with the #define. The esp8266 config pages have a page for updating the fingerprint. For the esp32 I'm currently working on a config page which lets you update the RootCA and save it to spiffs. (maby you could help by testing a beta in a couple of days?)

  • ESP-IDF? Not yet! We started out with the Arduino IDE as most of our users are here. 2.0.1 made it compatible for compiling with PlatformIO. ESP-IDF requires a full port of the library. Our ota server however does not care wat kind of device "platform" calls home. As long as it provides the necessary headers and accepts .bin files in return. If you are already working in the ESP-IDF and can initiate an ota update we will help you get it compatible with our services! Just ask.....

Sounds like you have an interesting project! I have had several projects trying to help disabled people. And would like to offer my help where ever you need it.

I hope my answers made sense and help!?

from esp-library.

yknivag avatar yknivag commented on June 15, 2024

Hi Onno,

Many thanks for getting back so quickly!

Regards the captive portal I was thinking of when the ESP cannot connect to any WiFi and it enters AP mode and one must connect to it and browse to 192.168.4.1 to set up the WiFi. The browser then has no internet access as it is only connected to the ESP - it is in this condition that I'd like to be able to have a captive portal to make setting the WiFi credentials easier.

No fallback makes https a no-go for me then. Would be good to have the option to turn off client.verify() to get around that. Otherwise the risk of the project needing physical attention is too great. Even if the root CA is in SPIFFS that still doesn't help really as access is still required to update it in SPIFFS and a call home for a SPIFFS update would fail due to the root CA it was trying to get so physical access would still be needed.

Well if it works in PlatformIO then it may be possible - apparently it is possible to use the IDF and, with modifications, the ADF in PlatformIO. I don't know - this is the first time I have had to deviate from the Arduino IDE and I am still very much at the conceptual research stage. IAS just seemed a fascinating way of dealing with upgrades.

from esp-library.

Onno-Dirkzwager avatar Onno-Dirkzwager commented on June 15, 2024

@yknivag
Captive portal
We will consider a define for this. But it would only be the "simple" wifi manager you got the first time you added a device. (or de static spiffs version that comes in the next release)

These versions of the config pages do not have the fancy fade / swipe / timezone / pin settings stuff the current cloud version has. But is seems you don't need this anyway.

This would be a define specificly for your type of situation where you want this "Captive portal" behavior. As most users don't want to leave the portal and have to browse to the ip for the other options. (currently we automaticly redirect you to the eps's ip if your in the browser connected etc.)

Fallback
We had a fallback in previous versions but it consumed to much memory having both versions "ready".
We will consider modifying the current define from (https / http) to (https / http / both).

cert update
This will actualy be done by your browser (as it has https...) automaticly when you enter config mode. A js script gets the cert over https. And sends it to the esp.

ESP-IDF
Full support with a special library will take an other +/- 6 months. But as mentioned if you are willing to modify one of their ota update examples it will work with IAS. (I don't know enough about using both IDF & ADF in PIO at the same time. But keep me posted)

fascinating way of dealing with upgrades
Thankyou! I hope my answers will make you consider to keep using IAS!

from esp-library.

Onno-Dirkzwager avatar Onno-Dirkzwager commented on June 15, 2024

@yknivag any feedback?

from esp-library.

Onno-Dirkzwager avatar Onno-Dirkzwager commented on June 15, 2024

@yknivag
Closing due to lack of response, please feel free to reopen if this is still an issue. Thanks.

from esp-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.