SetActivePortAsync

Returns (Task)

Set a port active on the designated Controller.

Name Description
controller
activePortItem

Set Active Port Async

Example in C#

// Returns: T
var item = await client.SetActivePortAsync<T>(T controller, ActivePortItem activePortItem)

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/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
                   }'