lte.h 615 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __LTE_H
  2. #define __LTE_H
  3. #include "usart.h"
  4. #include "string.h"
  5. #include "sys_mqtt.h"
  6. #include "LTE_MQTT.h"
  7. #include "stdint.h"
  8. #include "timer.h"
  9. #include "gateway_message.h"
  10. #if 0
  11. #include <ucos_ii.h>
  12. #define LTE_Delay(x) OSTimeDly(x);
  13. #else
  14. #define LTE_Delay(x) delay_ms(x)
  15. #endif
  16. #define SUCCESS 0
  17. #define ERROR 1
  18. #define TIMEOUT 2
  19. extern int socket;
  20. extern uint8_t config_flag;
  21. void EC800M_open(void);
  22. int LTE_HTTP_get(void);
  23. void ec800_init(void);
  24. void ec800_TCP(void);
  25. void http_set_url(char *url);
  26. int Iot_SendCmd(char* cmd, char* reply, int wait);
  27. void EC800M_task(void);
  28. #endif