From 68f33af73d67785a2c6ecba6859d65145bc6ee95 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Dec 2024 12:41:33 +0000 Subject: Development over Christmas. --- wifi.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'wifi.h') diff --git a/wifi.h b/wifi.h index 9a8ee71..92a48a3 100644 --- a/wifi.h +++ b/wifi.h @@ -39,16 +39,20 @@ typedef enum eWifiFailedToWrite, eWifiFailedToReceive, eWifiTimeout, - eWifiInvalidURL + eWifiInvalidURL, + eWifiFailedToSendCommand, + eWifiBadHTTPStatusCode } WifiStatus; /* Connect to the wifi modem and return status. */ WifiStatus WifiConnect(void); -/* Connect to a URL. Returns status. +/* Connect to a URL. Returns status. If it is a post then *content_len holds + the length of the posted file. If it is not a post (a get) then + *content_len holds the content length from the respose. */ -WifiStatus ConnectURL(const char *method, const char *url); +WifiStatus ConnectURL(int is_post, const char *url, size_t *content_len); /* Sends a formatted string to the connection. Returns status. */ -- cgit v1.2.3