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.

CC3220S-LAUNCHXL: Setting Domain Name

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3200, CC3220SF

Alright I'm at a loss for trying to change the domain name.  What header file am I missing?  I keep getting a compiler error stating SL_NET_APP_DEVICE_CONFIG_ID and NETAPP_SET_GET_DEV_CONF_OPT_DOMAIN_NAME are undeclared.

		    unsigned char str1[32] = "test.net";
		    unsigned char len = strlen((const char *)str1);
		    retVal = sl_NetAppSet(SL_NET_APP_DEVICE_CONFIG_ID, NETAPP_SET_GET_DEV_CONF_OPT_DOMAIN_NAME, len, (unsigned char*)str1);

  • Hi Andrew,

    Those defines seem to be from the CC3200 Simplelink host driver. In the latest CC3220 Simplelink host driver, those defines are named differently.

    SL_NET_APP_DEVICE_CONFIG_ID should be SL_NETAPP_DEVICE_ID
    NETAPP_SET_GET_DEV_CONF_OPT_DOMAIN_NAME should be SL_NETAPP_DEVICE_DOMAIN

    They should be defined in netapp.h, in source\ti\drivers\net\wifi. There should be a migration guide in the docs/simplelink_mcu_sdk/ folder of the SDK that documents the changes that have been made between the CC3200 host driver and the CC3220 host driver, which would be a useful reference if you run into similar issues in the future.

    Regards,

    Michael

  • Thanks.  That fixed the compiler error.  I'm still having an issue.  It still only responds to mysimplelink.net.  Am I missing a step?  sl_NetAppSet returns -6147 when I set the domain name.

  • Hi Andrew,

    I made a mistake in my previous post. The second argument of the sl_NetAppSet call should be SL_NETAPP_DEVICE_DOMAIN, not SL_NETAPP_DNS_OPT_DOMAIN_NAME.

    With that change, I was able to use the following code to set the domain name of my CC3220SF.

            unsigned char str1[32] = "mynewsimplelink.net";
            unsigned char len = strlen((const char *)str1);
            retVal = sl_NetAppSet(SL_NETAPP_DEVICE_ID, SL_NETAPP_DEVICE_DOMAIN, len, (unsigned char*)str1);

    Regards,

    Michael