UNPKG

dial-a-device-node

Version:

dial-a-device-node is the device interface for dial-a-device

32 lines (19 loc) 628 B
(function (exports) { var device_model_simulation = { filedetected: "" }; function pad(num, size) { var s = num + ""; while (s.length < size) s = "0" + s; return s; } exports.init = function (eventbus) { eventbus.emit("serial.simulation"); eventbus.emit("serial.portopened"); if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function (str) { return this.indexOf(str) == 0; }; } }; })(typeof exports == 'undefined' ? this['simulator'] = {} : exports);