|
|
@ -8,6 +8,7 @@ |
|
|
#include "rtthread.h" |
|
|
#include "rtthread.h" |
|
|
#include "rttypes.h" |
|
|
#include "rttypes.h" |
|
|
|
|
|
|
|
|
|
|
|
#define LINK_4G |
|
|
|
|
|
|
|
|
char cmd_cmd[100] = {0}; |
|
|
char cmd_cmd[100] = {0}; |
|
|
char cmd_str[100] = {0}; |
|
|
char cmd_str[100] = {0}; |
|
|
@ -128,6 +129,18 @@ int16_t client_tcp_connect(Cclient_t *client) { |
|
|
// Set_Tansparent_Mode(client);
|
|
|
// Set_Tansparent_Mode(client);
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef LINK_4G |
|
|
|
|
|
char buf[128] = {0}; |
|
|
|
|
|
sprintf(buf, "{\"sn\":\"%s\",\"client_id\":\"%s\"}\r\n", lte_dev.iccid, |
|
|
|
|
|
lte_dev.imei); |
|
|
|
|
|
|
|
|
|
|
|
rt_device_write(lte_dev.com_dev, 0, buf, sizeof(buf)); |
|
|
|
|
|
|
|
|
|
|
|
rt_device_write(lte_dev.com_dev, 0, buf, sizeof(buf)); |
|
|
|
|
|
|
|
|
|
|
|
rt_device_write(lte_dev.com_dev, 0, buf, sizeof(buf)); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
return rtn; |
|
|
return rtn; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|