From 1d699cc3048d7e1dfed4f13e455cd2ede3d52101 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 7 Oct 2023 21:45:13 -0700 Subject: [PATCH] client: Explain config settings --- client/config.c | 3 +++ client/config.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/config.c b/client/config.c index e3f444b..d2be496 100644 --- a/client/config.c +++ b/client/config.c @@ -1,9 +1,12 @@ #include "config.h" +/* Wi-Fi credentials */ char wifi_ssid[] = "THEWIFISSID"; char wifi_pass[] = "THEWIFIPASSWORD"; +/* Network address of the server to contact */ char tattle_server_ip_address[] = "192.168.10.10"; u16_t tattle_port = 29803; // 'tk' +/* For distinguishing reports from multiple tattlekey devices. */ u16_t this_tattler_identity = 1; diff --git a/client/config.h b/client/config.h index 7b89ba2..97e2f8c 100644 --- a/client/config.h +++ b/client/config.h @@ -3,12 +3,15 @@ #include "lwip/arch.h" +/* Wi-Fi credentials */ extern char wifi_ssid[]; extern char wifi_pass[]; -extern u16_t tattle_port; +/* Network address of the server to contact */ extern char tattle_server_ip_address[]; +extern u16_t tattle_port; +/* For distinguishing reports from multiple tattlekey devices. */ extern u16_t this_tattler_identity; #endif -- 2.44.1