diff --git a/applications/VK_Client.c b/applications/VK_Client.c index 9f6b85e..d080632 100644 --- a/applications/VK_Client.c +++ b/applications/VK_Client.c @@ -8,6 +8,7 @@ #include "rtthread.h" #include "rttypes.h" +#define LINK_4G char cmd_cmd[100] = {0}; char cmd_str[100] = {0}; @@ -128,6 +129,18 @@ int16_t client_tcp_connect(Cclient_t *client) { // Set_Tansparent_Mode(client); #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; }