Skip to content

Commit

Permalink
Rename mgos_wifi_set_config to mgos_wifi_setup
Browse files Browse the repository at this point in the history
And make public.

Related to mongoose-os-libs/bt-common#1

PUBLISHED_FROM=0ba0e42b4dd28bbc393f0646541ca9faa8654cb4
  • Loading branch information
Deomid Ryabkov authored and cesantabot committed Nov 24, 2017
1 parent 7cdbbf7 commit c2cedad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/mgos_wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ bool mgos_wifi_setup_sta(const struct mgos_config_wifi_sta *cfg);

bool mgos_wifi_setup_ap(const struct mgos_config_wifi_ap *cfg);

bool mgos_wifi_setup(const struct mgos_config_wifi *cfg);

bool mgos_wifi_connect(void); /* To the previously _setup network. */

bool mgos_wifi_disconnect(void);
Expand Down
4 changes: 2 additions & 2 deletions src/mgos_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ void mgos_wifi_scan(mgos_wifi_scan_cb_t cb, void *arg) {
wifi_unlock();
}

bool mgos_wifi_set_config(const struct mgos_config_wifi *cfg) {
bool mgos_wifi_setup(const struct mgos_config_wifi *cfg) {
bool result = false, trigger_ap = false;
int gpio = cfg->ap.trigger_on_gpio;

Expand Down Expand Up @@ -332,5 +332,5 @@ bool mgos_wifi_init(void) {
s_wifi_lock = mgos_new_rlock();
mgos_register_config_validator(validate_wifi_cfg);
mgos_wifi_dev_init();
return mgos_wifi_set_config(mgos_sys_config_get_wifi());
return mgos_wifi_setup(mgos_sys_config_get_wifi());
}

0 comments on commit c2cedad

Please sign in to comment.