NetBurner 3.5.8
PDF Version
Toggle main menu visibility
web_client.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
8
9
#ifndef _WEB_CLIENT_H
10
#define _WEB_CLIENT_H
11
68
69
#include <nbstring.h>
70
#include <webclient/http_funcs.h>
71
77
#define WEB_CLIENT_ERROR_NO_ETHERNET (1)
78
#define WEB_CLIENT_ERROR_NO_ADDRESS (2)
79
#define WEB_CLIENT_ERROR_NO_GATEWAY (3)
80
#define WEB_CLIENT_ERROR_GATEWAY_WRONG (4)
81
#define WEB_CLIENT_ERROR_NO_DNS_ADDR (5)
82
#define WEB_CLIENT_ERROR_NO_DNS_RESOLVE (6)
83
#define WEB_CLIENT_ERROR_NO_NTP (7)
84
#define WEB_CLIENT_ERROR_NO_SERVER_RESPONSE (8)
85
#define WEB_CLIENT_ERROR_NO_SERVER_CONNECT (9)
86
#define WEB_CLIENT_ERROR_NO_ERROR (10)
87
#define WEB_CLIENT_ERROR_INVALID_REQ (11)
89
90
#define WEB_CLIENT_ERROR_LAST_STATE (10)
91
92
extern
const
char
*web_error_state_text[WEB_CLIENT_ERROR_LAST_STATE + 1];
93
94
#ifndef WebErrorReporterFunc
95
typedef
void(WebErrorReporterFunc)(
int
ErrorState);
96
#endif
97
102
extern
WebErrorReporterFunc *pWebErrorReporter;
103
112
bool
DoActualClientRequest
(
ParsedURI
&TheUri, uint16_t &next_time_delay);
113
124
bool
StartWebClient
(
int
prio,
const
char
*url1,
const
char
*url2 = NULL,
bool
bDoNtp =
false
);
125
136
bool
StartWebClient
(
int
prio,
const
NBString
&url1,
const
NBString
&url2,
bool
bDoNtp =
false
);
137
147
bool
StartWebClient
(
int
prio,
const
NBString
&url1,
bool
bDoNtp =
false
);
148
149
// Semaphore to wake web client early
150
extern
OS_SEM
WebClientSem;
151
153
154
#endif
NBString
Lightweight alternative to C++ CString class.
Definition
nbstring.h:118
ParsedURI
Parsed Uniform Resource Identifier Class (URI).
Definition
http_funcs.h:62
StartWebClient
bool StartWebClient(int prio, const char *url1, const char *url2=NULL, bool bDoNtp=false)
Start the web client using a URL string.
DoActualClientRequest
bool DoActualClientRequest(ParsedURI &TheUri, uint16_t &next_time_delay)
Callback to specify for performing and handle a WebClient request.
Definition
WebClient/FindMyIpTask/src/main.cpp:26
OS_SEM
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition
nbrtos.h:407
nbrtos
include
webclient
web_client.h
Generated by
1.18.0