API to setup wifi with SSID,passphrase

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am able to change the setting in wifi_dct_config.h to access the internet

/* This is the default AP the device will connect to (as a client)*/

#define CLIENT_AP_SSID       "xxx"

#define CLIENT_AP_PASSPHRASE "yyy"

I have created a BLE characteristic for a user to provide the ssid/passphrase from a mobile app.

What API call do I make to setup the wifi with the ssid/passphrase I received through ble ?

Sajid

0 Likes
1 Solution
JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

Hi Sajid,

You will have to modify the configurations for the AP. Please refer to function wifi_join() in Wiced-SDK\libraries\utilities\command_console\wifi\command_console_wifi.c and you will see this procedure done before calling wiced_network_up().

Thanks,

Jaeyoung

View solution in original post

1 Reply
JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

Hi Sajid,

You will have to modify the configurations for the AP. Please refer to function wifi_join() in Wiced-SDK\libraries\utilities\command_console\wifi\command_console_wifi.c and you will see this procedure done before calling wiced_network_up().

Thanks,

Jaeyoung