HomeSpan/examples/Tutorials/C-Advanced
Gregg 0a5cf52569 Modified Service::update() to return boolean instead of StatusCode
Also moved StatusCode definitions from Settings.h to HAPConstants.h.  There was no reason to have the user return a StatusCode of OK or UNABLE from update() since the only other choice was BUSY and HomeKit does not seem to distinguish errors.  Either it's okay or not okay, which can more easily be represented by a simply return of TRUE or FALSE from update().

The user now needs to know nothing about StatusCodes.   All Examples were modified to change StatusCode update() to boolean update() and return(StatusCode:OK) to return (true).

Much simpler.
2020-10-01 21:41:26 -05:00
..
08-Bridges Modified Service::update() to return boolean instead of StatusCode 2020-10-01 21:41:26 -05:00
09-MessageLogging Modified Service::update() to return boolean instead of StatusCode 2020-10-01 21:41:26 -05:00
10-RGB_LED Modified Service::update() to return boolean instead of StatusCode 2020-10-01 21:41:26 -05:00
11-ServiceOptions Modified Service::update() to return boolean instead of StatusCode 2020-10-01 21:41:26 -05:00