Closed marcus-j-davies closed 3 years ago
And so it begins
// Extract the firmware from a given firmware file let actualFirmware: Firmware; try { const format = guessFirmwareFileFormat(filename, rawData); actualFirmware = extractFirmware(rawData, format); } catch (e) { // handle the error, then abort the update } // try the update try { await this.driver.controller.nodes .get(nodeId)! .beginFirmwareUpdate( actualFirmware.data, actualFirmware.firmwareTarget, ); console.log(`Node ${nodeId}: Firmware update started`); } catch (e) { // handle error }
And so it begins