learnHttp.h 400 B

12345678910111213141516171819202122
  1. #ifndef __LEARN_HTTP_H_
  2. #define __LEARN_HTTP_H_
  3. typedef enum{
  4. UHTTP_FILE_GET,
  5. UHTTP_POST
  6. }UHTTP_ENUM;
  7. typedef void (*HttpCallBack)(char *msg, int len);
  8. void learnHttpStart(UHTTP_ENUM httpType, char *url, unsigned short port, HttpCallBack *httpCb,unsigned char *dmsg, unsigned int dlen);
  9. unsigned char getHttpLearnStatus(void);
  10. void hearnHttpOverTime(void);
  11. void jsonTestNow(void);
  12. #endif