GPIO
Trigger GPIO Output
POST /api/gpio/:device/outputs/:output/write
Set the value of a GPIO output port.
| Parameter | Type | Description |
|---|---|---|
| :device | String or Number (optional) | The name or index of the GPIO device. If not provided, the first available device will be used. |
| :output | Number | The output port number to control. |
Request Body
1 2 3 | |
| Parameter | Type | Description |
|---|---|---|
| value | Boolean | The value to set the output. |
Simulate GPIO Input Trigger
POST /api/gpio/:device/inputs/:input/simulate
Simulate a trigger on an input port.
| Parameter | Type | Description |
|---|---|---|
| :device | String or Number (optional) | The name or index (0-based) of the GPIO device. |
| :input | Number | The input port number to simulate a trigger on. |
Event Listeners (for input triggers)
You can use these methods to listen and react to GPIO events:
- .on('trigger', e => {}) - Add a listener for input triggers.
- .once('trigger', e => {}) - Add a one-time listener.
- .off('trigger', e => {}) - Remove a listener.
- .simulate(InputNumber) - Simulate an input trigger.
- .write(OutputNumber, Boolean) - Write a value to an output port.
Get Info of the Erizos Server
GET /api/info
Returns all the information regarding the Erizos Server.
Response
The response is the information of the Studio Server
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Get Settings of Erizos Server
GET /api/settings
Returns all the information regarding the Erizos Server settings
Response
The response is the information of the Studio Server Settings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
Get all Servers
GET /api/servers
Returns all the Erizos Servers found in the network.
Response
The response is an array of Servers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
Restart the App
Restarts the App
POST /api/restart
Response
1 2 3 | |
Get all UI Mappings
GET /api/uimappings
Returns all the UI Mappings
Response
The response is an array of UI Mapping
1 2 3 4 5 6 7 8 9 10 11 12 13 | |