https://toitlang.org/ logo
What are the built-in Wi-Fi provisioning methods o...
# help
r
Is there WPS (Wi-Fi Protected Setup) ?
f
I don't think we have this implemented. Let me look a bit more.
No. It's not implemented yet.
Looking at the code (https://github.com/espressif/esp-idf/blob/master/examples/wifi/wps/main/wps.c) it might not be too hard to add. That said, I don't even have a router to test it on (and it's not the highest priority).
r
So we must use the most common "SSID + network password" method. A touch panel with keyboard on it.
f
Typically we see two more common methods: - the device creates a WiFi hotspot where the user can enter the data. Also known as "captive portal". - Bluetooth
The BLE provisioning (https://github.com/toitware/toit-provision) was recently broken, but I'm trying to fix it today or early next week.
Here is an example for creating an access-point so that users can connect to it and provide the WiFi: https://github.com/kasperl/toit-zygote
Found the bug with the provision-package. I should be able to fix it on Monday.
r
Adding a cheap touch display with nice enclosure will be much more attractive from the viewpoint of end user. 🤩
So the Wi-Fi Bluetooth version of ESP32 is needed, right?
f
Pretty much any esp32 comes with WiFi and Bluetooth. Some images (or "envelopes") might remove Bluetooth support are it uses memory even when not in use. The default one (in Toit) has support for both.
r
I`ve found that ESP32-S3 fits my user case. Will it work with Toit (wi-fi and bluetooth)?
f
Yes
If you take one with extra memory, things get easier to program.
r
Is 8MB flash memory enough for Toit development?
f
Yes definitely. You don't need any additional but a few megabytes more just make it easier. Even 2 is plenty.
r
I am seeking one on digikey with 4MB to 8MB flash memory.
f
Both are good
r
one point is not good enough is - most ESP32 board still use the micro USB inlet. A USB-C inlet will fit current power supply. 😒
I have found an ESP32-S2 board with a USB-C inlet! 😆
plus a 3rd party power supply unit, almost done!😆
Will be done with a nice enclosure. 😒
Hello, will this work with an ESP32-S2 board which does not have bluetooth function? 🧐
f
Yes. That repository doesn't need Bluetooth. That said: the s3 shouldn't cost much more, so I would try to find one. Are you just looking for an s3 board with usb-c? Or do you have some requirements for the board?
r
I have found one with BME280 + USB-C + battery charger on one board! 😍