diff options
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. */ |