Part Number: LAUNCHXL-CC3235SF
Tool/software: TI-RTOS
Hello everyone!
I want to ask about two Wlan functions "sl_WlanGet" and "sl_WlanProfileGet", by which I can get SSID for AP mode and SSID of AP in case of STA mode respectively. But format of response values are a bit different. In case of "sl_WlanProfileGet", function returns SSID and its length without regard null character '\0' in the end of string. However "sl_WlanGet" function returns SSID as null-terminated string and its length includes this null character. Although in documentation (dev.ti.com/.../group___wlan.html) returned SSID length is the same for both functions "Get up to 32 characters of SSID" and "Up to 32 bytes". But if I allocate memory for precise length without null character and specify parameter "pNameLen" as precise length of SSID name without regard to null termnated character, "sl_WlanGet" function will return error code "-2001" (SL_ESMALLBUF). And in case of "sl_WlanGetNetworkList" function, returned SSID names' lengths are without null charactes. I would like to clarify, why "sl_WlanGet" function includes null character, while its neighbor functions don't include?
And it seems there're some typos in your documentation. "sl_WlanGet" function has "pConfigOpt" parameter as input (not output, as it specified), and "pConfigLen" could be both input and output value (not only output), so it should be specified as [in,out], I suspect.
Best regards,
Roman