I'm trying to read the device domain name so I can change it but only want to chance it once in my code so I don't keep writing to flash with every power cycle. I want to read the domain name first and then decide if it needs to be set. This code seems to return just an empty string
uint8_t domain_name[33]; memset(domain_name,0,33); sl_NetAppGet(SL_NETAPP_DEVICE_ID,SL_NETAPP_DEVICE_DOMAIN,strlen(domain_name),(uint8_t *)domain_name); UART_PRINT("DOMAIN NAME: %s\r\n", domain_name);