NetBurner 3.5.0
PDF Version
 
web_client.h File Reference

Web Client. More...

#include <nbstring.h>
#include <webclient/http_funcs.h>

Go to the source code of this file.

Macros

#define WEB_CLIENT_ERROR_NO_ETHERNET   (1)
 No Ethernet connection.
 
#define WEB_CLIENT_ERROR_NO_ADDRESS   (2)
 Interface has no IP address.
 
#define WEB_CLIENT_ERROR_NO_GATEWAY   (3)
 Interface has no gateway IP address.
 
#define WEB_CLIENT_ERROR_GATEWAY_WRONG   (4)
 Interface has incorrect gateway IP address.
 
#define WEB_CLIENT_ERROR_NO_DNS_ADDR   (5)
 Interface has a DNS errror.
 
#define WEB_CLIENT_ERROR_NO_DNS_RESOLVE   (6)
 DNS was not able to resolve the URL name.
 
#define WEB_CLIENT_ERROR_NO_NTP   (7)
 NTP failed.
 
#define WEB_CLIENT_ERROR_NO_SERVER_RESPONSE   (8)
 No response from server.
 
#define WEB_CLIENT_ERROR_NO_SERVER_CONNECT   (9)
 Unable to connect to server.
 
#define WEB_CLIENT_ERROR_NO_ERROR   (10)
 No error.
 

Functions

bool DoActualClientRequest (ParsedURI &TheUri, uint16_t &next_time_delay)
 Callback to specify for performing and handle a WebClient request.
 
bool StartWebClient (int prio, const char *url1, const char *url2=NULL, bool bDoNtp=false)
 Start the web client using a URL string.
 
bool StartWebClient (int prio, const NBString &url1, const NBString &url2, bool bDoNtp=false)
 Start the web client using a NBString.
 
bool StartWebClient (int prio, const NBString &url1, bool bDoNtp=false)
 Start the web client using a NBString.
 

Variables

WebErrorReporterFunc * pWebErrorReporter
 Set this variable to a callback function to specify a handler for errors.
 

Detailed Description

Web Client.