]> git.scottworley.com Git - tattlekey/blob - client/config.c
c5a38b44ad6afbf1b96531ec7d3eee7109da9826
[tattlekey] / client / config.c
1 #include "config.h"
2
3 /* Wi-Fi credentials */
4 char wifi_ssid[] = "THEWIFISSID";
5 char wifi_pass[] = "THEWIFIPASSWORD";
6
7 /* Network address of the server to contact */
8 char tattle_server_ip_address[] = "192.168.10.10";
9 u16_t tattle_port = 29803; // 'tk'
10
11 /* For distinguishing reports from multiple tattlekey devices. */
12 u16_t this_tattler_identity = 1;
13
14 /* Which GPIO pin is the button connected to?
15 * The button should span this pin and ground, connecting this pin to ground
16 * when pressed.
17 * https://projects.raspberrypi.org/en/projects/introduction-to-the-pico/10
18 * recommends pins 18, 22, or 28. */
19 uint button_pin = 18;
20
21 /* Don't bother reporting each separate button press when it is pressed many
22 * times in short succession. (We also use this to de-bounce. :) */
23 u32_t minimum_microseconds_between_button_presses = 1000000;