Sets the active port for a Mercury controller. Returns (Task)
Set a port active on the designated Controller.
| Name | Description |
|---|---|
| controller | The Mercury controller to update |
| activePortItem | The active port information to set |
Example in C#
// Returns: T
var item = await client.SetActivePortAsync<T>(T controller, ActivePortItem activePortItem);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLERS.KEY/activeports \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '{
"$type":"Feenics.Keep.WebApi.Model.ActivePortItem, Feenics.Keep.WebApi.Model",
"DriverNumber":0,
"BaudRate":0
}'