CarlosDerSeher / snapclient

snapclient on ESP32
GNU General Public License v3.0
125 stars 16 forks source link

Improve WiFi-Provisioning #75

Closed DerPicknicker closed 4 months ago

DerPicknicker commented 5 months ago

Hi @CarlosDerSeher ,

in the other Issue we discussed the Wifi-provisoning. I think two options would increase the usability a lot.

The current Situation doesn't allow changing Wifi-SSIDs / Passwords without flashing the board again.

Option 1: Using the current implementation and start the Provisioning again after 3-5 failed connection attempts.

Option 2: Use this Library: https://github.com/jnthas/Improv-WiFi-Library and support the Improv-Protocol. Big benefit is that you don't need the Espressif app and you can flash it with your browser and setup the wifi as well in your browser. I did a small research and I can't find a pure C-Version of the Library. I guess a lot of Code should be working also in pure C. Only the Vectors might be Problem if I am informed correctly.

DerPicknicker commented 4 months ago

Thank you for the detailed explanation - maybe @CarlosDerSeher can also share his thoughts. I think the Snapcast-Repo should include the Webinstaller for all boards as it's the place where all changes are happening.

@CarlosDerSeher .. What do you think about this topic?

CarlosDerSeher commented 4 months ago

You mean the source code only or also a hosted version on github.io where actions push latest binaries?

We can do that. How should we handle the generic boards though?

DerPicknicker commented 4 months ago

The second part - the changes happen here. So why not build news binary's when changes are made. Build the binary's for each supported board and publish them to the web installer.

CarlosDerSeher commented 4 months ago

We could do that if someone is willing to put in the effort to make it work. What are the requirements for this exactly?

CarlosDerSeher commented 4 months ago

Also shouldn't this discussion continue in #72?

anabolyc commented 4 months ago

We could do that if someone is willing to put in the effort to make it work. What are the requirements for this exactly?

I can do that. Just give me a list of boards that you're willing to support, I'll add them to my wen installer and push changes upstream

DerPicknicker commented 4 months ago

@anabolyc

Lyrat 4.3 @CarlosDerSeher used this (if I remember correctly...) Let's move this discussion to the issue Carlos linked ;-)

Lyrat Mini 1.3 I used this board.

I would also recommend creating a binary for generic boards like those boards which doesn't require any special configuration (i2c, psram) ..