@lessondesk/marker-protocol
Advanced tools
Comparing version 3.0.13 to 3.2.0
@@ -382,3 +382,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
this.markerDump = function (port) { | ||
this.listMarkers = function (port) { | ||
port.write(Buffer.from([0xfd, 0xfd, 0xfd, 0x03, 0x06])); | ||
@@ -402,3 +402,3 @@ }; | ||
var usbDetected = ref[0]; | ||
var port = new SerialPort(usbDetected && usbDetected.comName || "/dev/ttyS1", { | ||
var port = new SerialPort(usbDetected && usbDetected.comName || "/dev/ttyS0", { | ||
baudRate: 115200, | ||
@@ -419,3 +419,3 @@ databits: 8, | ||
}); | ||
this$1.on('list', function () { return this$1.markerDump(port); }); | ||
this$1.on('list', function () { return this$1.listMarkers(port); }); | ||
this$1.on('remove', function (serial) { return this$1.removeMarker(port, serial); }); | ||
@@ -433,4 +433,5 @@ this$1.on('version', function () { return this$1.handleApVersionRequest(port); }); | ||
MarkerProtocol.prototype = Object.create( EventEmitter$$1 && EventEmitter$$1.prototype ); | ||
MarkerProtocol.prototype.constructor = MarkerProtocol; | ||
MarkerProtocol.prototype.constructor = MarkerProtocol; // The function below is the receivers response to a marker join request ie. try to accept | ||
/** | ||
@@ -437,0 +438,0 @@ * [0xFD], [0xFD], [0xFD], [0x01], [0x00] |
{ | ||
"name": "@lessondesk/marker-protocol", | ||
"version": "3.0.13", | ||
"version": "3.2.0", | ||
"description": "Lesson Desk Group marker protocol", | ||
@@ -5,0 +5,0 @@ "source": "src/index.js", |
Sorry, the diff of this file is not supported yet
58832