summaryrefslogtreecommitdiff
path: root/wifi.h
diff options
context:
space:
mode:
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.
*/