Is there some way I can get the device name passed from my smartconfig phone app on my device main() ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Jinu,
If you are designing a mobile application using the smartconfig library, you can manually send tcp packets with device name right after the smartconfig process. On the CC3200 side, open a tcp server socket to read this data and then call
sl_NetAppSet (SL_NET_APP_DEVICE_CONFIG_ID, NETAPP_SET_GET_DEV_CONF_OPT_DEVICE_URN, strlen(DEVICE_NAME), (unsigned char *)DEVICE_NAME);
to set the device name.
There are many a times I don't get the smartconfig response in the mobile app from the device, but still the device gets connected to the network. So I need the Device ID during the smartconfig procedure. Is there no way to get it during the smartconfig process?
Also 1 more query. If I want some additional data to be sent to the mobile app along with the response the device sends. Is that possible?