From: @CHENG <2393524978@qq.com> Date: Wed, 19 Feb 2025 12:04:18 +0000 (+0800) Subject: hengai 接口更新 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=af9660076b4247e88c93eae8b7915da78d15d767;p=mirrors%2FASR3603_Z5.git hengai 接口更新 --- diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_http_protocol.c b/2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_http_protocol.c index 0e4b680a..10160938 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_http_protocol.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_http_protocol.c @@ -206,7 +206,7 @@ void mmi_hengai_tcp_bp_back_measure_raw_data_send(void) uint16_t i = 0; int * temp_int_ptr = mmi_hengai_bp_raw_data_ptr_get(); int temp_int_len = mmi_hengai_bp_raw_data_len_get(); - temp_len += sprintf(json_data + temp_len, "\"pulse_wave\":["); + temp_len += sprintf(json_data + temp_len, "\"ppg_data\":["); if(0 == temp_int_len) { temp_len += sprintf(json_data + temp_len, "],"); @@ -226,7 +226,7 @@ void mmi_hengai_tcp_bp_back_measure_raw_data_send(void) } } - temp_len += sprintf(json_data + temp_len, "\"sample_rate\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); + temp_len += sprintf(json_data + temp_len, "\"ppg_fs\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); temp_len += sprintf(json_data + temp_len, "\"measure_mode\":0,"); /* ²âÁ¿Ä£Ê½(0:±»¶¯²âÁ¿/1:Ö÷¶¯²âÁ¿/2:Á¬Ðø²âÁ¿/3:ÆäËû²âÁ¿) */ @@ -500,7 +500,7 @@ void mmi_hengai_tcp_bp_measure_raw_data_send(void) uint16_t i = 0; int * temp_int_ptr = mmi_hengai_bp_raw_data_ptr_get(); int temp_int_len = mmi_hengai_bp_raw_data_len_get(); - temp_len += sprintf(json_data + temp_len, "\"pulse_wave\":["); + temp_len += sprintf(json_data + temp_len, "\"ppg_data\":["); if(0 == temp_int_len) { temp_len += sprintf(json_data + temp_len, "],"); @@ -520,7 +520,7 @@ void mmi_hengai_tcp_bp_measure_raw_data_send(void) } } - temp_len += sprintf(json_data + temp_len, "\"sample_rate\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); + temp_len += sprintf(json_data + temp_len, "\"ppg_fs\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); temp_len += sprintf(json_data + temp_len, "\"measure_mode\":1,"); /* ²âÁ¿Ä£Ê½(0:±»¶¯²âÁ¿/1:Ö÷¶¯²âÁ¿/2:Á¬Ðø²âÁ¿/3:ÆäËû²âÁ¿) */ @@ -776,7 +776,7 @@ void mmi_hengai_tcp_bp_calibrate_raw_data_send(uint8_t calibrate_times, uint16_t uint16_t i = 0; int * temp_int_ptr = mmi_hengai_bp_raw_data_ptr_get(); int temp_int_len = mmi_hengai_bp_raw_data_len_get(); - temp_len += sprintf(json_data + temp_len, "\"pulse_wave\":["); + temp_len += sprintf(json_data + temp_len, "\"ppg_data\":["); if(0 == temp_int_len) { temp_len += sprintf(json_data + temp_len, "],"); @@ -796,7 +796,7 @@ void mmi_hengai_tcp_bp_calibrate_raw_data_send(uint8_t calibrate_times, uint16_t } } - temp_len += sprintf(json_data + temp_len, "\"sample_rate\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); + temp_len += sprintf(json_data + temp_len, "\"ppg_fs\":%d,", MMI_HENGAI_BP_RAW_DATA_SAMPLE_RATE); temp_len += sprintf(json_data + temp_len, "\"measure_mode\":1,"); /* ²âÁ¿Ä£Ê½(0:±»¶¯²âÁ¿/1:Ö÷¶¯²âÁ¿/2:Á¬Ðø²âÁ¿/3:ÆäËû²âÁ¿) */