SinricPro Library
Loading...
Searching...
No Matches
SinricProAirQualitySensor

Device to report air quality events. More...

#include <SinricProAirQualitySensor.h>

Inheritance diagram for SinricProAirQualitySensor:

Public Member Functions

bool sendPushNotification (String notification)
 Sending push notifications to SinricPro App.
 
bool sendAirQualityEvent (int pm1=0, int pm2_5=0, int pm10=0, String cause=FSTR_SINRICPRO_PERIODIC_POLL)
 Sending air quality to SinricPro server.
 

Detailed Description

Device to report air quality events.

Member Function Documentation

◆ sendAirQualityEvent()

bool sendAirQualityEvent ( int  pm1 = 0,
int  pm2_5 = 0,
int  pm10 = 0,
String  cause = FSTR_SINRICPRO_PERIODIC_POLL 
)
inherited

Sending air quality to SinricPro server.

Parameters
pm1int 1.0 μm particle pollutant in μg/m3
pm2_5int 2.5 μm particle pollutant in μg/m3
pm10int 10 μm particle pollutant in μg/m3
cause(optional) String reason why event is sent (default = "PERIODIC_POLL")
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

◆ 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