MMX2 series – User's Manual 69
Request and Response
ɯ <ip><pin>
ɯ body: <value>;<time>
ɮ header: 200 OK
ɮ body: <value>;<time>
Parameters
Parameter Parameter description
<pin> GPIO pin number.
P1-P6
<value> The output value of the GPIO pin.
High
high level
Low
low level
<time> Duration of the desired value in seconds.
1-120
seconds
Example
ɯ
ɯ
ɮ header: 200 OK
ɮ body: OK
Toggling the Level of a GPIO Pin
The output level can be changed from low to high and from high to low by the command below.
Request and Response
ɯ <ip><pin>
INFO:
ɮ header: 200 OK
ɮ body: OK
Example
ɯ
ɮ header: 200 OK
ɮ body: OK
Request and Response #ocs
ɯ <ip>
ɮ header: 200·OK
ɮ body: <value>
Parameters
Parameter Parameter description
<value> The input value of the OCS pin.
High
high level
Low
low level
Example
ɯ
ɮ header: 200 OK
ɮ
Setting the Sensor Type
Request and Response
ɯ <ip>
ɯ body: <sensor_type>
ɮ header: 200 OK
ɮ body: <sensor_type>
Parameters
Parameter Parameter description
<sensor_type>
input level means the occupancy.
Active low
Occupancy status is
'Occupied' when the
input level is low.
Active high
Occupancy status is
'Occupied' when the
input level is high
(default value).
Example
ɯ
ɯ body: Active low
ɮ header: 200 OK
ɮ body: Active low