README
Example Summary
Example that demonstrates using HAPEngine to create an accessory with custom services and characteristics. It contains an accessory called Doodad which contains a custom service which contains the On characteristic as well as 4 other custom characteristics of int, float, bool and string types.
Board Usage/Settings (CC3220SF LP)
MFi BoosterpackNeeded for WAC and HomeKit pair-setup(uses I2C pins 01 & 02)LED D7 (Red)Used to indicate WAC mode at startupSW2Used to put accessory in WAC mode during startup and later used for a HomeKit reset
Example Usage
Build, load and run the example. LED D7 flashes for the first 5 seconds during which pressing SW2 will force the device into WAC mode. If button SW2 isn’t pressed, the accessory will try to connect to one its stored AP profiles for 10 seconds. If successfull, it acquries an IP address and prints it to the console or else it goes into WAC mode waiting to be provisioned.
Also printed to the console is “MFiAuth: 0” when an MFi chip is detected and functioning on the I2C bus. “MFiAuth: -2” will be printed if not detected.
Now connected to the network, you can now discover, pair and interact with the accessory from your HomeKit app. The pairing setup code is 111-22-333.
Pushing SW3 at anytime will do a HomeKit reset and wipe all paired controllers from the accessory.
Note there isn’t any visible identify sequence for this accessory.
Some HomeKit apps may not support interacting with custom services and characteristics.
*Refer to the Getting Started Guide for more details about board setup, building and flashing the LaunchPad.