设备解绑,绑定Notify优先级设置为1 1366/1 1366/head
authorluozheng <1732036298@qq.com>
Thu, 7 Nov 2024 10:32:45 +0000 (18:32 +0800)
committerluozheng <1732036298@qq.com>
Thu, 7 Nov 2024 10:32:45 +0000 (18:32 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index ca4263d..5364d14 100644 (file)
@@ -134,7 +134,7 @@ const PriorityMapper PRI_MAPPER[] = {
     {TOPIC_EVENT_LEAKLIGHT_UPDATA, PRIORITY_TWO},
 #endif
 #ifdef SUPPORT_DEVICE_PAIRING_NOTIFICATION  //如果支持设备配对通知
-    {TOPIC_EVENT_DEVICE_BIND, PRIORITY_TWO},
+    {TOPIC_EVENT_DEVICE_BIND, PRIORITY_ONE},
     // {TOPIC_EVENT_DEVICE_UNBIND, PRIORITY_TWO},
     // {TOPIC_EVENT_DEVICE_UNBINDING_REQUEST, PRIORITY_TWO},
 #endif
@@ -1253,7 +1253,7 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req)
         switch(data[0])
         {
             case DEVICEBIND:
-                NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
+                NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
                 len_name = req->len-2;
                 memset(devname,0,len_name);
                 if(len_name > 0)
@@ -1267,7 +1267,7 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req)
                 break;
             case DEVICEUNBIND:
                 
-                NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
+                NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
                 len_name = req->len-2;
                 memset(devname,0,len_name);
                 if(len_name > 0)