5. The Reference for RPCM REST API
Parameters:
mask - bit outlet mask
if mask = 3 — set inlets: 0 and 1 to ON
if mask = 1023 — set all inlets (0 - 9) to ON
state = [on, off]
REPLY: GET /api/status is used as a system response.
Example:
curl -X PUT http://192.168.1.24:8888/api/multiple-outlets/mask/3/on
Setting of recognition to ON
Command:
PUT /api/recognition/mask/[mask]
Parameters:
mask — bit outlet mask, where 0-9 bits for outlets (14-15 bits for inlets).
if mask = 0 – turn off recognition for all
if mask = 3 — turn off recognition 0 and 1 outlets.
REPLY: GET /api/status is used as a system response.
Example:
curl -X PUT http://192.168.1.24:8888/api/recognition/mask/0
5.2.4.3 Reboot All Outlets
Command:
PUT /api/(channels|outputs|outlets)/restart
Example:
curl -X PUT http://192.168.1.24:8888/api/outputs/restart
Outlets will rebooted with restart delays for every port. Restart dealy is a timeout bettween
outlet turning off and turning on.
5.2.4.4 Turn On All Outlets
Command:
PUT /api/(channels|outputs|outlets)/on
Example:
curl -X PUT http://192.168.1.24:8888/api/outputs/on
183