Part Number: CC3200
Hello All,
My device connects to an Access Point and retreives the IP using DHCP.
If I check my AP, I can see my device, but with the naming xxxxxxxxx-mysimplelink (where xxxxxxx = MAC address).
How can I change this name to something useful.
I tried the following, without any success:
if (0 != sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, nameLength, (const unsigned char*)deviceName)){
result = CCC_NTW_ParameterSetupFailed;
}
if (0 != sl_NetAppSet(SL_NET_APP_DEVICE_CONFIG_ID, NETAPP_SET_GET_DEV_CONF_OPT_DEVICE_URN, nameLength, (const unsigned char*)deviceName)){
result = (result == CCC_NTW_Success) ? result : CCC_NTW_ParameterSetupFailed;
}
if (0 != sl_NetAppSet(SL_NET_APP_DEVICE_CONFIG_ID, NETAPP_SET_GET_DEV_CONF_OPT_DOMAIN_NAME, nameLength, (const unsigned char*)deviceName)){
result = (result == CCC_NTW_Success) ? result : CCC_NTW_ParameterSetupFailed;
}
Thanks
Patrik