guild icon
Toit
#What are the built-in Wi-Fi provisioning methods of Toit + ESP32?
Thread channel in help
Timmy77
Timmy77 06/07/2024 12:39 PM
Is there WPS (Wi-Fi Protected Setup) ?
floitsch
floitsch 06/07/2024 12:41 PM
I don't think we have this implemented. Let me look a bit more.
floitsch
floitsch 06/07/2024 12:44 PM
No. It's not implemented yet.
floitsch
floitsch 06/07/2024 12:46 PM
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).
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - espressif/esp-idf
Timmy77
Timmy77 06/07/2024 03:15 PM
So we must use the most common "SSID + network password" method. A touch panel with keyboard on it.
floitsch
floitsch 06/07/2024 03:16 PM
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
(edited)
floitsch
floitsch 06/07/2024 03:17 PM
The BLE provisioning (https://github.com/toitware/toit-provision) was recently broken, but I'm trying to fix it today or early next week.
Toit package for provisioning. Contribute to toitware/toit-provision development by creating an account on GitHub.
floitsch
floitsch 06/07/2024 03:17 PM
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
Contribute to kasperl/toit-zygote development by creating an account on GitHub.
๐Ÿค1
floitschfloitsch
The BLE provisioning (https://github.com/toitware/toit-provision) was recently broken, but I'm trying to fix it today or early next week.
floitsch
floitsch 06/07/2024 06:54 PM
Found the bug with the provision-package. I should be able to fix it on Monday.
๐Ÿ‘1
Timmy77
Timmy77 06/07/2024 07:26 PM
Adding a cheap touch display with nice enclosure will be much more attractive from the viewpoint of end user. :๐Ÿคฉ:
floitschfloitsch
The BLE provisioning (https://github.com/toitware/toit-provision) was recently broken, but I'm trying to fix it today or early next week.
Timmy77
Timmy77 06/08/2024 07:47 AM
So the Wi-Fi Bluetooth version of ESP32 is needed, right?
Timmy77OPTimmy77
So the Wi-Fi Bluetooth version of ESP32 is needed, right?
floitsch
floitsch 06/08/2024 07:51 AM
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.
๐Ÿ‘1
Timmy77
Timmy77 06/08/2024 09:17 AM
I`ve found that ESP32-S3 fits my user case. Will it work with Toit (wi-fi and bluetooth)?
floitsch
floitsch 06/08/2024 09:17 AM
Yes
floitsch
floitsch 06/08/2024 09:17 AM
If you take one with extra memory, things get easier to program.
๐Ÿ‘1
floitschfloitsch
If you take one with extra memory, things get easier to program.
Timmy77
Timmy77 06/08/2024 02:07 PM
Is 8MB flash memory enough for Toit development?
floitsch
floitsch 06/08/2024 03:55 PM
Yes definitely. You don't need any additional but a few megabytes more just make it easier. Even 2 is plenty.
Timmy77
Timmy77 06/08/2024 04:01 PM
I am seeking one on digikey with 4MB to 8MB flash memory.
floitsch
floitsch 06/08/2024 04:01 PM
Both are good
Timmy77
Timmy77 06/08/2024 04:07 PM
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. :๐Ÿ˜’:
Timmy77
Timmy77 06/08/2024 04:37 PM
I have found an ESP32-S2 board with a USB-C inlet! :๐Ÿ˜†:
Timmy77
Timmy77 06/08/2024 04:37 PM
plus a 3rd party power supply unit, almost done!:๐Ÿ˜†:
Timmy77
Timmy77 06/08/2024 04:42 PM
Will be done with a nice enclosure. :๐Ÿ˜’:
floitschfloitsch
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
Timmy77
Timmy77 06/09/2024 04:54 AM
Hello, will this work with an ESP32-S2 board which does not have bluetooth function? :๐Ÿง:
floitsch
floitsch 06/09/2024 08:18 AM
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?
floitschfloitsch
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 ha...
Timmy77
Timmy77 06/09/2024 12:11 PM
I have found one with BME280 + USB-C + battery charger on one board! :๐Ÿ˜:(edited)
๐Ÿ‘1
26 messages in total