Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.14 KB

checkfirmwarerelease.md

File metadata and controls

53 lines (42 loc) · 1.14 KB

checkFirmwareRelease

Check firmware release

Check the current Bluetooth firmware version status of the device.

const response = await HardwareSDK.checkBLEFirmwareRelease(connectId);

Params

Optional common params

Example

const response = await HardwareSDK.checkFirmwareRelease(connectId);

Result

{
    success: true,
    payload: {
        status: string, // current firmware status, 'valid' | 'outdated' | 'required' | 'unknown' | 'none'
        // 'valid' means update is not required
        // 'outdated' means updates are available
        // 'required' means updates are required. 
        // 'unknown' and 'none' means there's no way to get the version number
        changelog: [], // update logs
        release: {     // latest version information
          required: boolean,
          version: Array<number>,
          url: string,
          webUpdate: string,
          changelog: Record<string, string>
    }
}

Error

{
    success: false,
    payload: {
        error: string, // error message
        code: number // error code
    }
}