Check the current Bluetooth firmware version status of the device.
const response = await HardwareSDK.checkBLEFirmwareRelease(connectId);
const response = await HardwareSDK.checkFirmwareRelease(connectId);
{
success: true,
payload: {
status: string, // current firmware status, 'valid' | 'outdated' | 'required' | 'unknown' | 'none'
changelog: [], // update logs
release: { // latest version information
required: boolean,
version: Array<number>,
url: string,
webUpdate: string,
changelog: Record<string, string>
}
}
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}