hengai 接口更新
author@CHENG <2393524978@qq.com>
Wed, 19 Feb 2025 12:04:18 +0000 (20:04 +0800)
committer@CHENG <2393524978@qq.com>
Wed, 19 Feb 2025 12:04:18 +0000 (20:04 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_http_protocol.c

index 0e4b680..1016093 100644 (file)
@@ -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:ÆäËû²âÁ¿) */