EasyManua.ls Logo

Lightware UCX-4x2-HC30 - Setting the Output Level for a Specified Time; Toggling the Level of a GPIO Pin; Setting the Output Level of a GPIO Pin; Setting the Direction of a GPIO Pin

Lightware UCX-4x2-HC30
167 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
 UCX series – User's Manual 98


Setting the Direction of a GPIO Pin
Request and Response
ɯ  <ip><port>
ɯ body: <dir>
ɮ header: 200 OK
ɮ body: <dir>
Parameters
Parameter Parameter description  
<dir> The direction of the GPIO pin.
Input
input
Output
output
Example
ɯ  
ɯ body: Input
ɮ header: 200 OK
ɮ body: Input
Setting the Output Level of a GPIO Pin
Request and Response
ɯ  <ip><port>
ɯ body: <state>
ɮ header: 200 OK
ɮ body: <state>
Parameters
Parameter Parameter description  
<value> The output value of the GPIO pin.
High
high level
Low
low level
Example
ɯ  
ɯ body: High
ɮ header: 200 OK
ɮ body: High

Request and Response
ɯ  <ip><port>
ɯ body: <value>;<time>
ɮ header: 200 OK
ɮ body: <value>;<time>
Parameters
Parameter Parameter description  
<value> The output value of the GPIO pin.
High
high level
Low
low level
<time> Duration of the desired value in seconds.
1-120
second
Example
ɯ  
ɯ  
ɮ header: 200 OK
ɮ body: OK
Toggling the Level of a GPIO Pin
The output level can be changed from high to low and low to high by the command below.
Request and Response
ɯ  <ip><port>
INFO: 
ɮ header: 200 OK
ɮ body: OK
Example
ɯ  
ɮ header: 200 OK
ɮ body: OK

Table of Contents

Related product manuals