]> git.scottworley.com Git - tattlekey/blame - client/tattlekey.c
housing: Extra length for cord grip
[tattlekey] / client / tattlekey.c
CommitLineData
e2173399 1#include "pico/cyw43_arch.h"
5ec2b60a
SW
2#include "pico/stdlib.h"
3
dae35db7
SW
4#include "blink.h"
5
d234f6b3
SW
6char ssid[] = "THEWIFISSID";
7char pass[] = "THEWIFIPASSWORD";
8
75649fe3
SW
9int main() {
10 stdio_init_all();
d234f6b3 11 if (cyw43_arch_init_with_country(CYW43_COUNTRY_USA))
75649fe3
SW
12 signal_error_by_blinking();
13 signal(1, 200);
d234f6b3 14 cyw43_arch_enable_sta_mode();
75649fe3 15 signal(2, 200);
d234f6b3
SW
16 if (cyw43_arch_wifi_connect_timeout_ms(ssid, pass, CYW43_AUTH_WPA2_AES_PSK,
17 10000))
18 signal_error_by_blinking();
75649fe3
SW
19 signal(3, 200);
20 signal_success_by_blinking();
21}