mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-26 19:48:35 +00:00
[ATL-1533] Firmware&Certificate Uploader (#469)
Co-authored-by: Alberto Iannaccone <a.iannaccone@arduino.cc>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
export const ArduinoFirmwareUploaderPath =
|
||||
'/services/arduino-firmware-uploader';
|
||||
export const ArduinoFirmwareUploader = Symbol('ArduinoFirmwareUploader');
|
||||
export type FirmwareInfo = {
|
||||
board_name: string;
|
||||
board_fqbn: string;
|
||||
module: string;
|
||||
firmware_version: string;
|
||||
Latest: boolean;
|
||||
};
|
||||
export interface ArduinoFirmwareUploader {
|
||||
list(fqbn?: string): Promise<FirmwareInfo[]>;
|
||||
flash(firmware: FirmwareInfo, port: string): Promise<string>;
|
||||
uploadCertificates(command: string): Promise<any>;
|
||||
updatableBoards(): Promise<string[]>;
|
||||
availableFirmwares(fqbn: string): Promise<FirmwareInfo[]>;
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
export const ExecutableServicePath = '/services/executable-service';
|
||||
export const ExecutableService = Symbol('ExecutableService');
|
||||
export interface ExecutableService {
|
||||
list(): Promise<{ clangdUri: string; cliUri: string; lsUri: string }>;
|
||||
list(): Promise<{
|
||||
clangdUri: string;
|
||||
cliUri: string;
|
||||
lsUri: string;
|
||||
fwuploaderUri: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user