SinricPro Library
Loading...
Searching...
No Matches
SinricProTemperaturesensor

Device to report actual temperature and humidity. More...

#include <SinricProTemperaturesensor.h>

Inheritance diagram for SinricProTemperaturesensor:

Public Member Functions

bool sendPushNotification (String notification)
 Sending push notifications to SinricPro App.
 
bool sendTemperatureEvent (float temperature, float humidity=-1, String cause=FSTR_SINRICPRO_PERIODIC_POLL)
 Send currentTemperature event to report actual temperature (measured by a sensor)
 

Detailed Description

Device to report actual temperature and humidity.

Member Function Documentation

◆ sendPushNotification()

bool sendPushNotification ( String  notification)
inherited

Sending push notifications to SinricPro App.

Parameters
notificationString with the notification
Returns
the success of sending the event
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time

◆ sendTemperatureEvent()

bool sendTemperatureEvent ( float  temperature,
float  humidity = -1,
String  cause = FSTR_SINRICPRO_PERIODIC_POLL 
)
inherited

Send currentTemperature event to report actual temperature (measured by a sensor)

Parameters
temperaturefloat actual temperature measured by a sensor
humidityfloat (optional) actual humidity measured by a sensor (default=-1.0f means not supported)
cause(optional) String reason why event is sent (default = "PERIODIC_POLL")
Returns
the success of sending the even
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time