Skip to content

Commit

Permalink
Change device name on Wifi_config to SonoffS20
Browse files Browse the repository at this point in the history
  • Loading branch information
maccoylton committed Nov 17, 2019
1 parent f1e7a5b commit 568a0d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/
firmware/
src/.DS_Store
.DS_Store
src/udplog-client
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const int status_led_gpio = 13; /*set the gloabl variable for the led to be sued

void button_single_press_callback(uint8_t gpio, void* args, const uint8_t param) {

printf("button_single_press_callback:Toggling relay\n");
printf("button_single_press_callback:Button %d, Toggling relay on gpio %d\n", gpio, relay_gpio);
switch_on.value.bool_value = !switch_on.value.bool_value;
relay_write(switch_on.value.bool_value, gpio);
relay_write(switch_on.value.bool_value, relay_gpio);

}

Expand Down Expand Up @@ -146,8 +146,8 @@ void user_init(void) {
standard_init (&name, &manufacturer, &model, &serial, &revision);

gpio_init();
wifi_config_init("SonoffMini", NULL, on_wifi_ready);

wifi_config_init("SonoffS20", NULL, on_wifi_ready);


}

0 comments on commit 568a0d2

Please sign in to comment.