Code: Select all
TemperatureSensor temperature("Temperature");
TemperatureSensor humidity("Humidity");
Code: Select all
Standard Devices
Classes are defined for the standard devices.
Creating object of these class creates the standard device with default parameters to it.
Class for standard devices
Switch
LightBulb
TemperatureSensor
Fan