WIFI_handle.h 597 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _WIFI_HANDLE_H
  2. #define _WIFI_HANDLE_H
  3. #include "main.h"
  4. //// ʱ¼ä½á¹¹Ìå
  5. //typedef struct {
  6. // uint16_t year;
  7. // uint8_t month;
  8. // uint8_t day;
  9. // uint8_t hour;
  10. // uint8_t minute;
  11. // uint8_t second;
  12. // uint8_t week;
  13. //} WIFITimeStruct;
  14. // ÌìÆø½á¹¹Ìå
  15. typedef struct {
  16. uint8_t weatherCode;
  17. char weatherTemp[3];
  18. uint8_t tempNum;
  19. }WIFIWeatherStruct;
  20. void WIFI_Init(void);
  21. void WIFI_Connect(void);
  22. uint8_t WIFI_RealTime_handle(uint8_t *timeBuff, uint8_t hexOrDec);
  23. uint8_t WIFI_realWeather_handle(WIFIWeatherStruct *WIFIWeather1);
  24. void tianqiDisplay(uint8_t weatherCode);
  25. #endif