Expansion Commands
Last updated: 2025/5/22 17:53:3 | ||
Path To | Name | Description/Function |
/api/expansion | /porttype | Gets expansion port types. |
/api/expansion | /off/{port} | Turns off the specified breaker. |
/api/expansion | /on/{port} | Turns on the specified breaker. |
/api/expansion | /off | Turns off all breakers. |
/api/expansion | /ison/{port} | Forces a refresh of the state of the expansion board. |
/api/expansion | /isfaulted/{port} | Requests the current fault state of the breaker. |
/porttype
Function | Gets expansion port types. |
|---|---|
Method | Get |
Example |
CODE
|
Response | Expansion board port type. |
Response Type | string |
Response Example |
CODE
|
/off/{port}
Function | Turns off the specified breaker. |
|---|---|
Method | Get |
Example |
CODE
|
Response | The index of the breaker to turn off. |
Response Type | Not Available |
Response Example |
CODE
|
/on/{port}
Function | Turns on the specified breaker. |
|---|---|
Method | Get |
Example |
CODE
|
Response | The index of the breaker to turn on. |
Response Type | Not Available |
Response Example |
CODE
|
/off
Function | Turns off all breakers. |
|---|---|
Method | Get |
Example |
CODE
|
Response | Status code 200, for completed operation being preformed. |
Response Type | none |
Response Example |
CODE
|
/ison/{port}
Function | Forces a refresh of the state of the expansion board. |
|---|---|
Method | Get |
Example |
CODE
|
Response | State of port. |
Response Type | Boolean |
Response Example |
CODE
|
/isfaulted/{port}
Function | Requests the current fault state of the breaker. |
|---|---|
Method | Get |
Example |
CODE
|
Response | If port is faulted. |
Response Type | Boolean |
Response Example |
CODE
|