particle-ymodem
Basic implementation of the Ymodem-protocol as implemented in Particle devices. Currently created and tested only to send firmware files to a Particle Photon.
Install using NPM
npm install particle-ymodem
npm install serialport
Use in application
var lightYModem = ;var serialPort = ;var fs = ; var file = fs;var serialPort = '/dev/cu.usbmodemfd131' baudrate: 28800 false;var { console;}var logCallback = consolelog; var modem = ;modem;