Control IO
Interacting with digital inputs, digital outputs and the GPRS unit of the device
Control I/O
The following example shows how to control and monitor the TC Router IO. This functionality includes controlling the built in digital output, reading the digital inputs, and controlling the state of the GPRS module.
Use .getIO() to return the instantaneous status of the two digital inputs, digital output, and the GPRS module state.
At the time of writing this document, all TC Router devices have one digital output which can be controlled with this package. To control this output, the first parameter must be 1, to indicate the first digital output. The second parameter specifies the intended new state of the output.
2G/3G GPRS can be controlled with the .controlGprs() method.
Last updated
Was this helpful?