From: p15692025051 <846603105@qq.com> Date: Thu, 8 May 2025 02:53:04 +0000 (+0800) Subject: 补充鉴权线程 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=1778597c1e66f8cb090d60906e8d392fa8ba3f7b;p=mirrors%2FFX01.git 补充鉴权线程 --- 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); }