From 148b93451fe974ab4638881a801f2e1e28bed360 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 22 Jul 2022 17:33:00 -0400 Subject: [PATCH] more wifi --- cubesatsim/cubesatsim.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.h b/cubesatsim/cubesatsim.h index 898cf344..6b2a2383 100644 --- a/cubesatsim/cubesatsim.h +++ b/cubesatsim/cubesatsim.h @@ -153,7 +153,18 @@ void payload_OK_only(); void client_print_string(char *string)' bool check_for_wifi(); void check_for_browser(); - +void configure_wifi(); + +#ifndef STASSID +#define STASSID "Pico" +#define STAPSK "picoPassword" +#endif + +WiFiServer server(port); +WiFiClient client; +const char* ssid = STASSID; +const char* password = STAPSK; +int port = 7373; bool wifi = false; extern int Encode_8b10b[][256];