diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-12-30 12:41:33 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-12-30 12:41:33 +0000 |
commit | 68f33af73d67785a2c6ecba6859d65145bc6ee95 (patch) | |
tree | 2f277cfdabec8d9a8f7f63cc224b649a4010f63c /wifi.h | |
parent | aa33cb940bb31c74903fb7dc26e5d2f264064911 (diff) |
Diffstat (limited to 'wifi.h')
-rw-r--r-- | wifi.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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. */ |