How to use the set_dtr function from bindings

Find comprehensive JavaScript bindings.set_dtr code examples handpicked from public code repositorys.

143
144
145
146
147
148
149
150
151
152
  }
}

SerialPort.prototype.set_dtr = function(boolean_value) {
  if (this.fd) {
    serialport_native.set_dtr(this.fd, boolean_value);
  } else {
    throw new Error("Can't set or clear DTR; invalid file descriptor");
  }
}
fork icon0
star icon5
watch icon4

+ 9 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)