orbital-systems / react-native-esp-idf-provisioning

ESP IDF provisioning and custom data library for react-native
MIT License
21 stars 6 forks source link

Send custom data during provisioning #61

Open grasmash opened 1 month ago

grasmash commented 1 month ago

Hello,

I'd like to send additional metadata to the device during provisioning, in addition to the ssid and passphrase. It looks like this is supported in the upstream library: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/wifi_provisioning.html#additional-endpoints

How can I do this with this using react-native-esp-idf-provisioning?

grasmash commented 1 month ago

Ah. Looks like here https://github.com/orbital-systems/react-native-esp-idf-provisioning/blob/master/example/src/SendDataScreen.tsx it is done with const espResponse = await props.route.params.device.sendData(path, data); ?