Update src.ino
This commit is contained in:
		
							parent
							
								
									121864ba36
								
							
						
					
					
						commit
						269d749b5b
					
				
							
								
								
									
										20
									
								
								src/src.ino
								
								
								
								
							
							
						
						
									
										20
									
								
								src/src.ino
								
								
								
								
							|  | @ -33,16 +33,16 @@ void setup() { | ||||||
|     new Service::HAPProtocolInformation();                  // Create the HAP Protcol Information Service  
 |     new Service::HAPProtocolInformation();                  // Create the HAP Protcol Information Service  
 | ||||||
|       new Characteristic::Version("1.1.0");                     // Set the Version Characteristic to "1.1.0" as required by HAP
 |       new Characteristic::Version("1.1.0");                     // Set the Version Characteristic to "1.1.0" as required by HAP
 | ||||||
| 
 | 
 | ||||||
|     SpanService *v1=new Service::Valve(); |     new Service::LightBulb(); | ||||||
|       new Characteristic::Active(); |       new Characteristic::On(); | ||||||
|       new Characteristic::InUse(); |       new Characteristic::Brightness(); | ||||||
|       new Characteristic::ValveType(); |       new Characteristic::Name("Light 1"); | ||||||
|     SpanService *v2=new Service::Valve(); |     new Service::LightBulb(); | ||||||
|       new Characteristic::Active(); |       new Characteristic::On(); | ||||||
|       new Characteristic::InUse(); |       new Characteristic::Brightness(); | ||||||
|       new Characteristic::ValveType(); |       new Characteristic::Name("Light 2"); | ||||||
|     (new Service::Faucet())->addLink(v1)->addLink(v2); |     new Service::Switch(); | ||||||
|       new Characteristic::Active(); |       new Characteristic::On(); | ||||||
| 
 | 
 | ||||||
| } // end of setup()
 | } // end of setup()
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Gregg
						Gregg