]> git.scottworley.com Git - tattlekey/blob - client/tattlekey.c
client: Move config to config.c
[tattlekey] / client / tattlekey.c
1 #include "pico/cyw43_arch.h"
2 #include "pico/stdlib.h"
3
4 #include "blink.h"
5 #include "config.h"
6
7 int main() {
8 stdio_init_all();
9 if (cyw43_arch_init_with_country(CYW43_COUNTRY_USA))
10 signal_error_by_blinking();
11 signal(1, 200);
12 cyw43_arch_enable_sta_mode();
13 signal(2, 200);
14 if (cyw43_arch_wifi_connect_timeout_ms(wifi_ssid, wifi_pass,
15 CYW43_AUTH_WPA2_AES_PSK, 10000))
16 signal_error_by_blinking();
17 signal(3, 200);
18 signal_success_by_blinking();
19 }