12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __LTE_H
- #define __LTE_H
- #include "usart.h"
- #include "string.h"
- #include "stdint.h"
- #include "string.h"
- #include "ucos_ii.h"
- #include "malloc.h"
- #include "myFile.h"
- #include "gateway_message.h"
- #define LTE_USART USART6
- #define LTE_RxCounter UART6_RxCounter //记录接收数据的个数
- #define LTE_RxBuff UART6_RX_BUF //指定接收数据缓冲区的首地址
- #define LTE_RXBUFF_SIZE BUFF_SIZE //指定接收缓冲区的大小
- #define SUCCESS 0
- #define ERROR 1
- #define TIMEOUT 2
- #define URCERROR 3
- #define EPSERROR 4
- int LTE_SendCmd(char *cmd, char* reply, int timeout);
- int LTE_init(void); // 设备初始化
- int LTE_http(void); // http初始化
- int LTE_send_URL(char* url);
- int LTE_HTTP_get();
- #endif
|