Get SDK Version Number¶
⚠️ Note: This document describes how to use the SDK's API to operate scanning devices and provides sample code in C language. Please note that the API performs synchronous operations, which may block the main thread during use.
1. Current SDK Version Number¶
Get the current SDK version number. Usage is as follows:
const char* version = inateck_scanner_cmd_get_version();
The return result is a string in the format, such as "2.0.3".
2. Sample Code¶
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include "inateck_scanner_ble.h"
int main() {
// Get the current SDK version number
const char* version = inateck_scanner_ble_sdk_version();
printf("Current SDK version number: %s\n", version);
return 0;
}