From 5a8a3fc59cc58824e2c213ed4d79df3472a9701d Mon Sep 17 00:00:00 2001 From: LEESAN <174187588@qq.com> Date: Wed, 13 Aug 2025 10:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A04G=E5=8D=A1=E5=8F=B7=E7=9A=84?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/VK_Client.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }