AddReaderToLocalAreaAsync

Adds a reader to a local area with the specified direction. Returns (Task)

Register a Mercury Reader on to the designated Local Area with Directions

Name Description
localArea The local area to add the reader to
reader The reader to add
direction The direction (In or Out) for the reader

Add Reader To Local Area Async

Example in C#

// Returns: nothing
await client.AddReaderToLocalAreaAsync(LocalAreaInfo localArea, MercuryReaderInfo reader, LocalAreaReaderDirections direction);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/localareas/LOCALAREA.KEY/readers?direction=In \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '"/api/f/INSTANCE.KEY/peripherals/READER.KEY"'