lte.h 708 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __LTE_H
  2. #define __LTE_H
  3. #include "usart.h"
  4. #include "string.h"
  5. #include "stdint.h"
  6. #include "string.h"
  7. #include "ucos_ii.h"
  8. #include "malloc.h"
  9. #include "myFile.h"
  10. #include "gateway_message.h"
  11. #define LTE_USART USART6
  12. #define LTE_RxCounter UART6_RxCounter //记录接收数据的个数
  13. #define LTE_RxBuff UART6_RX_BUF //指定接收数据缓冲区的首地址
  14. #define LTE_RXBUFF_SIZE BUFF_SIZE //指定接收缓冲区的大小
  15. #define SUCCESS 0
  16. #define ERROR 1
  17. #define TIMEOUT 2
  18. #define URCERROR 3
  19. #define EPSERROR 4
  20. int LTE_SendCmd(char *cmd, char* reply, int timeout);
  21. int LTE_init(void); // 设备初始化
  22. int LTE_http(void); // http初始化
  23. int LTE_send_URL(char* url);
  24. int LTE_HTTP_get();
  25. #endif