diff --git a/examples/07-IdentifyRoutines/DEV_Identify.h b/examples/07-IdentifyRoutines/DEV_Identify.h index 45ebaf1..4e2c5fc 100644 --- a/examples/07-IdentifyRoutines/DEV_Identify.h +++ b/examples/07-IdentifyRoutines/DEV_Identify.h @@ -14,7 +14,7 @@ struct DEV_Identify : Service::AccessoryInformation { // of AccessoryInformation, plus one extra argument at the end called "nBlinks" we will use to specify how many // times HomeSpan should blink the built-in LED when HomeKit calls this device's Identify routine during pairing. - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/08-Bridges/DEV_Identify.h b/examples/08-Bridges/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/08-Bridges/DEV_Identify.h +++ b/examples/08-Bridges/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/09-MessageLogging/DEV_Identify.h b/examples/09-MessageLogging/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/09-MessageLogging/DEV_Identify.h +++ b/examples/09-MessageLogging/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/10-RGB_LED/DEV_Identify.h b/examples/10-RGB_LED/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/10-RGB_LED/DEV_Identify.h +++ b/examples/10-RGB_LED/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/11-ServiceOptions/DEV_Identify.h b/examples/11-ServiceOptions/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/11-ServiceOptions/DEV_Identify.h +++ b/examples/11-ServiceOptions/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/12-ServiceLoops/DEV_Identify.h b/examples/12-ServiceLoops/DEV_Identify.h index ec05fbb..4151bba 100644 --- a/examples/12-ServiceLoops/DEV_Identify.h +++ b/examples/12-ServiceLoops/DEV_Identify.h @@ -10,7 +10,7 @@ struct DEV_Identify : Service::AccessoryInformation { // NEW! modified constructor() method to include optional ServiceType argument - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/13-TargetStates/DEV_Identify.h b/examples/13-TargetStates/DEV_Identify.h index ec05fbb..4151bba 100644 --- a/examples/13-TargetStates/DEV_Identify.h +++ b/examples/13-TargetStates/DEV_Identify.h @@ -10,7 +10,7 @@ struct DEV_Identify : Service::AccessoryInformation { // NEW! modified constructor() method to include optional ServiceType argument - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/14-EmulatedPushButtons/DEV_Identify.h b/examples/14-EmulatedPushButtons/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/14-EmulatedPushButtons/DEV_Identify.h +++ b/examples/14-EmulatedPushButtons/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/15-RealPushButtons/DEV_Identify.h b/examples/15-RealPushButtons/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/15-RealPushButtons/DEV_Identify.h +++ b/examples/15-RealPushButtons/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu); diff --git a/examples/16-ProgrammableSwitches/DEV_Identify.h b/examples/16-ProgrammableSwitches/DEV_Identify.h index 5bd1ef3..7b47683 100644 --- a/examples/16-ProgrammableSwitches/DEV_Identify.h +++ b/examples/16-ProgrammableSwitches/DEV_Identify.h @@ -8,7 +8,7 @@ struct DEV_Identify : Service::AccessoryInformation { int nBlinks; // number of times to blink built-in LED in identify routine SpanCharacteristic *identify; // reference to the Identify Characteristic - DEV_Identify(char *name, char *manu, char *sn, char *model, char *version, int nBlinks) : Service::AccessoryInformation(){ + DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments new Characteristic::Manufacturer(manu);