-
Notifications
You must be signed in to change notification settings - Fork 19
Create example for browser-based device setup #70
Comments
Awesome! Yes, I would definitely support this example! In my experience the ESP32 is one of the most common modules used for IOT devices, so targeting that as a device would be a great start I think! We've had some additional discussion in Discord that using a Bluetooth connection to the ESp32 from a Mobile device (IOS, Android) might be a more reliable technical solution and better for the product user because they don't have to disconnect the Bluetooth to make the Wifi Connection in case there is an error or something. I totally agree, however, my main concern is that developing and supporting two mobile apps (IOS and Android) seems like quite a daunting task. From my perspective as a product developer my goal is to develop an MVP as fast as possible and then iterate to improve the product experience once I have validated the total product concept. So my first effort would be to choose a web UI probably and then know that I can devote more development resources to a bluetooth solution later as the product grows in success. I imagine this flow will be common for most users of Golioth. Given that I think the Web device setup demo would be critical for onboarding developers onto the product of Golioth :) |
A better option for device provisioning is smart-config and recently also easy-connect (Android/not sure about iOS). The best thing about smart config is that it uses broadcast or multicast. And if for example you have 100 devices to provision you can use multicast and provision them at once. 1 extra point is that you don't need to have/use BT to be able to provision the device through smart-config, thus it's applicable also to ESP8266 boards |
To @keenanjohnson I'm sure by now you might have already seen that but bluetooth and wifi can coexist under different process tasks. So you don't really have to turn off BT to use wifi. |
@keenanjohnson asked in Discord for an example showing how to setup/deploy a device in the field via the web browser. Some of that discussion (Keenan - please add any more details!):
Basically create a sample that serves a web page for entering network credentials, similar to our mobile demo (which does more than wi-fi credentials.)
A non-Zephyr library I've used is called esp32-wifi-manager We could do something similar with civetweb as the webserver, dns-sd for .local discovery & settings to store credentials.
The text was updated successfully, but these errors were encountered: