ExpansionBoardController
Last updated: 2025/3/7 11:37:55 | ||
Path To | Name | Description/Function |
/api/expansionboard | /porttype | Gets expansion port types. |
/api/expansionboard | /off/{port} | Turns off the specified breaker. |
/api/expansionboard | /on/{port} | Turns on the specified breaker. |
/api/expansionboard | /off | Turns off all breakers. |
/api/expansionboard | /ison/{port} | Forces a refresh of the state of the expansion board. |
/api/expansionboard | /isfaulted/{port} | Requests the current fault state of the breaker. |
/porttype
Function | Gets expansion port types. |
---|---|
Method | Get |
Response | Expansion board port type. |
Example |
CODE
|
/off/{port}
Function | Turns off the specified breaker. |
---|---|
Method | Get |
Response | The index of the breaker to turn off. |
Example |
CODE
|
/on/{port}
Function | Turns on the specified breaker. |
---|---|
Method | Get |
Response | The index of the breaker to turn on. |
Example |
CODE
|
/off
Function | Turns off all breakers. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/ison/{port}
Function | Forces a refresh of the state of the expansion board. |
---|---|
Method | Get |
Response | State of port. |
Example |
CODE
|
/isfaulted/{port}
Function | Requests the current fault state of the breaker. |
---|---|
Method | Get |
Response | If port is faulted. |
Example |
CODE
|