Files
UpdaterWebLibrary/dist/index.d.ts

31 lines
993 B
TypeScript

export type versionNotes = {
title: string;
date: Date | string;
link: string;
html: string;
};
export default class Updater {
archiveURL: string;
feedType: string;
bleObject: BLECentralPlugin.BLECentralPluginStatic;
protected bleDeviceId: string;
private readonly _updaterServiceUUID;
private readonly _updaterVersionCharactersiticUUID;
file: Int8Array;
constructor(archiveURL?: string, feedType?: string, bleObject?: BLECentralPlugin.BLECentralPluginStatic);
private getRawArchive;
private atomGetVersionDetails;
private atomGetArchive;
private rssGetVersionDetails;
private rssGetArchive;
getArchive(): Promise<versionNotes[]>;
setDeviceId(id: string): void;
private bytesToString;
private readVersionNumber;
private getLatestVersion;
checkForUpdate(): Promise<boolean>;
getBoardVersion(): Promise<string>;
getFirmware(version: versionNotes): Promise<boolean>;
getFileSize(): number;
}