fuliqi
2024-08-29 4163c93761115c7524ef74a557a1f5e01eafb429
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.ycl.api.YS.config.network;
 
import com.ycl.api.YS.NetDemo;
 
/**
 *
 * @introduction Get SDK version
 * @description Support IPC/NVR/VMS
 */
public class Version {
 
    /**
     *
     * @introduction Get SDK version
     * @description Calling the interface of NETDEV_GetSDKVersion
     *
     */
    public static void getSdkVersion() {
        int version=NetDemo.netdevsdk.NETDEV_GetSDKVersion();
        String getVersion=String.valueOf(version);
        String str1=getVersion.substring(0, 2);
        StringBuffer buffer=new StringBuffer();
        buffer.append(str1);
        buffer.append(".");
        String str2=getVersion.substring(2, 4);
        buffer.append(str2);
        buffer.append(".");
        String str3=getVersion.substring(4, 6);
        buffer.append(str3);
        buffer.append(".");
        String str4=getVersion.substring(6, 8);
        buffer.append(str4);
        String get=buffer.toString();
        NetDemo.jTextFieldGetSDKVersion.setText(get);
    }
 
}