zephyr-dfu
Version:
The Capacitor plugin provides an implementation of the McuManager protocol supported by Zephyr.
12 lines (11 loc) • 401 B
TypeScript
export declare type CallbackID = string;
export interface ZephyrDfuPlugin {
updateFirmware(options: {
fileURL: string;
deviceIdentifier: string;
}, callback: firmwareUpdateCallback): Promise<CallbackID>;
getVersion(options: {
deviceIdentifier: string;
}): Promise<string>;
}
export declare type firmwareUpdateCallback = (msg: String | null, err?: any) => void;