From dae80d88602a8ca3495c6fc6d17f331525827338 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 15 Nov 2020 11:48:09 -0600 Subject: [PATCH] Create Categories.md --- docs/Categories.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/Categories.md diff --git a/docs/Categories.md b/docs/Categories.md new file mode 100644 index 0000000..47ae352 --- /dev/null +++ b/docs/Categories.md @@ -0,0 +1,10 @@ +# HomeSpan Categories + +Every HomeSpan device must be assigned a HomeKit Accessory Category. HomeSpan implements these categories as C++ Classes with names that exactly match the spelling and capitalization specified by Apple in Section 13 of [HAP-R2](https://developer.apple.com/support/homekit-accessory-protocol/), but without any spaces. HomeSpan Accessory Categories are defined in HomeSpan's `Category` namespace. For example, HomeSpan defines the *Garage Door Openers* Category (HAP Category 4) as `Category::GarageDoorOpeners`, which could be used when initializing HomeSpan as follows: + +```C++ +homeSpan.begin(Category::GarageDoorOpeners,"Acme Garage Door Lifts"); +``` +The table below provides a list of all HomeSpan Categories. + +