SinricPro Library
|
AirQuality. More...
#include <AirQualitySensor.h>
Public Member Functions | |
bool | sendAirQualityEvent (int pm1=0, int pm2_5=0, int pm10=0, String cause=FSTR_SINRICPRO_PERIODIC_POLL) |
Sending air quality to SinricPro server. | |
AirQuality.
bool sendAirQualityEvent | ( | int | pm1 = 0 , |
int | pm2_5 = 0 , |
||
int | pm10 = 0 , |
||
String | cause = FSTR_SINRICPRO_PERIODIC_POLL |
||
) |
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 |