From 125a1d1c613169f2453b865e330560956d15fbc2 Mon Sep 17 00:00:00 2001 From: zhujiarui666 Date: Mon, 15 Aug 2022 18:02:59 +0800 Subject: [PATCH] =?UTF-8?q?xiuos\APP=5FFramework\Framework\connection\blue?= =?UTF-8?q?tooth\hc08=EF=BC=9A=201.modify=20uuid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Framework/connection/bluetooth/hc08/hc08.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/APP_Framework/Framework/connection/bluetooth/hc08/hc08.c b/APP_Framework/Framework/connection/bluetooth/hc08/hc08.c index bc9e60eab..d8cb9a4d5 100644 --- a/APP_Framework/Framework/connection/bluetooth/hc08/hc08.c +++ b/APP_Framework/Framework/connection/bluetooth/hc08/hc08.c @@ -393,12 +393,8 @@ static int Hc08Ioctl(struct Adapter *adapter, int cmd, void *args) } #endif //Step4 : set LUUID、SUUID、TUUID, slave and master need to have same uuid param - #ifdef ADD_RTTHREAD_FETURES - luuid = 1233; - #else - luuid = 1234; - #endif - if (Hc08AtConfigure(adapter->agent, HC08_AT_CMD_SET_LUUID, &luuid, NULL) < 0) { + luuid = 1234; + if (Hc08AtConfigure(adapter->agent, HC08_AT_CMD_SET_LUUID, &luuid, NULL) < 0) { return -1; } @@ -406,7 +402,7 @@ static int Hc08Ioctl(struct Adapter *adapter, int cmd, void *args) return -1; } #ifdef ADD_RTTHREAD_FETURES - uint32_t suuid=1233; + uint32_t suuid=1234; if (Hc08AtConfigure(adapter->agent, HC08_AT_CMD_SET_SUUID, &luuid, NULL) < 0) { return -1; } @@ -414,7 +410,7 @@ static int Hc08Ioctl(struct Adapter *adapter, int cmd, void *args) if (Hc08AtConfigure(adapter->agent, HC08_AT_CMD_GET_SUUID, NULL, NULL) < 0) { return -1; } - uint32_t tuuid=1233; + uint32_t tuuid=1234; if (Hc08AtConfigure(adapter->agent, HC08_AT_CMD_SET_TUUID, &tuuid, NULL) < 0) { return -1; }