From 1778597c1e66f8cb090d60906e8d392fa8ba3f7b Mon Sep 17 00:00:00 2001 From: p15692025051 <846603105@qq.com> Date: Thu, 8 May 2025 10:53:04 +0800 Subject: [PATCH] =?utf8?q?=E8=A1=A5=E5=85=85=E9=89=B4=E6=9D=83=E7=BA=BF?= =?utf8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 2.code/aicos/app/AI_AMP_2_5/dev_authentication.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c b/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c index 7d3d58b..d83f70c 100644 --- a/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c +++ b/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c @@ -19,6 +19,7 @@ #include #include "mbedtls/aes.h" #include "mbedtls/cipher.h" +#include "dev_authentication.h" #define kb_malloc aic_malloc #define bk_free aic_free // static char * dev_key = "uKLrChwrxA1LklgBc3VwawYjUkbT3BgX" ; @@ -348,13 +349,13 @@ static void dev_authentication_task(void *thread_input)//鉴权逻辑线程 switch (dev_authentication_msg.MSG_Type) { case AUT_ACTIVE://激活 - AI_VC_Close(); + aut_active(); break; case AUT_LOGIN://登录 - AI_VC_start(); + aut_login(); break; case AUT_CHACK_TOKEN://检查token - AI_VC_start(); + aut_chack_token(); break; } if(dev_authentication_msg.data) @@ -368,9 +369,9 @@ static void dev_authentication_task(void *thread_input)//鉴权逻辑线程 void dev_authentication_init(void) { //创建设备激活队列 - if(dev_authentication_queue == NULL) + if(dev_authentication_task_queue == NULL) { - dev_authentication_task_queue = aos_create_queue("dev_authentication_queue", + dev_authentication_task_queue = aos_create_queue("dev_authentication_task_queue", sizeof(dev_authentication_MSG_queue_t), 200); } -- 2.17.1