openeew / openeew-app-reactnative

Earthquake Early-Warning app with user intensity estimation
Apache License 2.0
5 stars 6 forks source link

Integrate the OpenEEW sensor provisioning with Smart Config #15

Open andygrillo opened 4 years ago

andygrillo commented 4 years ago

Integrate the OpenEEW sensor provisioning feature into this app (so that its not just an alert app) using the Smart Config protocol from ESP32.

This is something we discussed in last week's townhall. It would mean that a user can quickly pass over Wifi credentials, the location coordinates, and local MQTT server IP address to the sensor when setting it up. This would be very helpful because the users would not need to modify and flash firmware with these variables every time they setup a sensor.

As we use ESP32 devices, we could consider the Smart Config protocol (eg https://apps.apple.com/ec/app/grillo/id1478536152). There is a React Native library that does this: https://www.npmjs.com/package/react-native-smartconfig-2 although I have not tested it.

Could someone please look at this library and see if its possible to pass over not just Wifi credentials, but this other data (latitude, longitude, mqtt server ip address) ?