SmartThingsCommunity / st-device-sdk-c

SmartThings SDK for Direct Connected Devices for C
Other
122 stars 126 forks source link

where to get the iot_device_prov_data information? #1

Closed easion closed 4 years ago

easion commented 4 years ago

I compiled and run st-device-sdk-c/example on the openwrt operating system, but I need to find the information contained in iot_device_prov_data from the BSP NV store in order to make the program run. The documentation does not mention these.

YongsulOh commented 4 years ago

Thanks easion & your feedback.

I will check it with our colleague and update to you again

DongHoon-Ryu commented 4 years ago

Thank you for your trial. In fact, such data comes from SmartThings Application during the onboarding process. That means we have to implement a SoftAP in Linux. But, unfortunately we are now planning to support SoftAP on a rich resource board such as Raspberry Pi because we were focusing on resource limited MCU devices first. Therefore, please refer to the _es_wifiprovisioninginfo_handler() for resource limited MCU devices in the "src/easysetup/iot_easysetup_d2d.c" file. I'll inform you again if there's anything updated about it.

Kwang-Hui commented 4 years ago

As @DongHoon-Ryu said, provisioning data comes from SmartThings mobile application based on your Samsung account and test environment which includes WiFi access point SSID, end-point of SmartThings Cloud. I hope this would be helpful to you.

Thanks.