Skip to main content
Uwe Bonnes
Chief
November 18, 2021
Question

B-U585: Qualify SSID with space: Not good!

  • November 18, 2021
  • 4 replies
  • 902 views

Hello,

the B-U585 Demo when asking for the SSID qualifies a name with a spacebar. Problem is, that many SSIDs contain a space by itself, like "FRITZ!Box 7530 ..." or "Galaxy ...". As the application does not echo what is sees, useres are left in the dark. Updated firmware would be welcome!

This topic has been closed for replies.

4 replies

Guillaume K
ST Employee
December 13, 2021

Hello

what do you mean by "qualifies a name with a spacebar" ? do you mean the B-U585 demo doesn't accept a SSID name with a space character in it ?

Uwe Bonnes
Chief
December 13, 2021

Yes!

The demo also does not echo what it had understood, e.g. echo the SSID Name when it starts to connect.

Guillaume K
ST Employee
December 15, 2021

So I understand the problem is in the IOT_HTTP_WebServer demo, in Firmware\Projects\B-U585I-IOT02A\Demonstrations\IOT_HTTP_WebServer\Core\Src\console.c, in webserver_console_get_ssid() function.

I agree there is no reason to exclude space character in SSID name.

You can remove the check for space character in the input loop:

do
 {
 if (HAL_UART_Receive(&Console_UARTHandle, (uint8_t *) &ch, 1, HAL_MAX_DELAY) != HAL_OK)
 {
 return CONSOLE_ERROR;
 }
 
 SSID[count] = ch;
 count++;
 
 } while ((ch != '\n') && (ch != ' ') && (ch != 0));

remove "&& (ch != ' ')"

it will be corrected in the code.

Uwe Bonnes
Chief
December 15, 2021

But the problem is in the out-of-the-box code, and so new users will stumble on that. Compiling the example isa big block for the faint-hearted, or beginner or makefile users. Consider providing a changed binary at least for download.