summaryrefslogtreecommitdiff
path: root/wifi.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-12-30 12:41:33 +0000
committerIan C <ianc@noddybox.co.uk>2024-12-30 12:41:33 +0000
commit68f33af73d67785a2c6ecba6859d65145bc6ee95 (patch)
tree2f277cfdabec8d9a8f7f63cc224b649a4010f63c /wifi.h
parentaa33cb940bb31c74903fb7dc26e5d2f264064911 (diff)
Development over Christmas.HEADmaster
Diffstat (limited to 'wifi.h')
-rw-r--r--wifi.h10
1 files changed, 7 insertions, 3 deletions
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.
*/