Add a Controller

All right, let us start looking at what to do with adding and communicating with the hardware so our people can gain access.

The Ip Controller is one of the most important devices in the system. It one of the devices that is capable of directly communicating to KEEP. The following is assuming the controller is configured properly, if it is not please refer to the controller’s specific manual. A controller must be added to a folder and if already configured it should be search-able on the system via its MACAddress. This Controller Add is will add an EP1501 device.

For more information on Controllers and the methods used please look at ControllerInfo.

Example in C#

var controller = await client.AddControllerAsync(currentInstance, new Ep1501Info
{
    CommonName = "OurController",
    MacAddress = "00:00:00:00:00:00",//Proper Format for a Mac Address - the field MacAddress will accept any string
    TimeZone = "EST5EDT,M3.2.0/2,M11.1.0/2" //Sets the daylight saving times
});

Example in CURL

curl -X POST \
  https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/controllers \
  -H 'Authorization:  Bearer TOKEN_GOES_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
        "$type":"Feenics.Keep.WebApi.Model.Ep1501Info, Feenics.Keep.WebApi.Model",
        "Status":null,
        "ActivePorts":null,
        "EnableLargeEncodedCardNumber":false,
        "MacAddress":"00:00:00:00:00:00",
        "Version":null,
        "TimeZone":"EST5EDT,M3.2.0/2,M11.1.0/2",
        "LastUpdatedOn":null,
        "Key":null,
        "CommonName":"OurController",
        "InFolderHref":null,
        "InFolderKey":null,
        "Links":[],
        "ObjectLinks":null,
        "Metadata":null,
        "Notes":null,
        "Tags":null,
        "Monikers":null,
        "Href":null
     }'