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'
        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
    }
}

Last updated