SinricPro Library
|
Device to report air quality events. More...
#include <SinricProAirQualitySensor.h>
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. | |
Device to report air quality events.
|
inherited |
Sending air quality to SinricPro server.
pm1 | int 1.0 μm particle pollutant in μg/m3 |
pm2_5 | int 2.5 μm particle pollutant in μg/m3 |
pm10 | int 10 μm particle pollutant in μg/m3 |
cause | (optional) String reason why event is sent (default = "PERIODIC_POLL" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Sending push notifications to SinricPro App.
notification | String with the notification |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |