|
@@ -206,10 +206,12 @@ public class RNSerialportModule extends ReactContextBaseJavaModule {
|
|
@ReactMethod
|
|
@ReactMethod
|
|
public void setRTS(int FLOW_CONTROL_RTS_CTS) {
|
|
public void setRTS(int FLOW_CONTROL_RTS_CTS) {
|
|
this.FLOW_CONTROL_RTS_CTS = FLOW_CONTROL_RTS_CTS;
|
|
this.FLOW_CONTROL_RTS_CTS = FLOW_CONTROL_RTS_CTS;
|
|
|
|
+ serialPort.setRTS(FLOW_CONTROL_RTS_CTS);
|
|
}
|
|
}
|
|
@ReactMethod
|
|
@ReactMethod
|
|
- public void setDTR(int FLOW_CONTROL_RTS_CTS) {
|
|
|
|
|
|
+ public void setDTR(int FLOW_CONTROL_DSR_DTR) {
|
|
this.FLOW_CONTROL_DSR_DTR = FLOW_CONTROL_DSR_DTR;
|
|
this.FLOW_CONTROL_DSR_DTR = FLOW_CONTROL_DSR_DTR;
|
|
|
|
+ serialPort.setDTR(FLOW_CONTROL_DSR_DTR);
|
|
}
|
|
}
|
|
|
|
|
|
@ReactMethod
|
|
@ReactMethod
|