httpClient.h
737 Bytes
/*
* Custom http client implementation based on httpServer
*
*/
#ifndef HTTP_CLIENT_H
#define HTTP_CLIENT_H
#include "libwismart.h"
#include "lwip/opt.h"
#include "lwip/tcp.h"
#include "lwip/udp.h"
#include "lwip/sys.h"
#include "lwip/api.h"
#include "ch.h"
#define DBG(fmt,...) if(1){printf("[SRV] "fmt"\r\n", ##__VA_ARGS__);}else{({});}
#define DBG_WARNING(fmt,...) if(1){printf("[SRV_WARNING] "fmt"\r\n", ##__VA_ARGS__);}else{({});}
void httpServer_init(void);
void httpServer_start(void);
msg_t httpServer_threadFunc(void *arg);
void httpServer_serveClient(struct netconn* httpClientConnection);
void getLocalTime(uint32_t* hours, uint32_t* minutes, uint32_t* seconds);
#endif