AirQualityEventSource.
More...
template<typename T>
class AirQualityEventSource< T >
AirQualityEventSource.
◆ sendAirQualityEvent()
bool sendAirQualityEvent |
( |
int |
pm1 = 0 , |
|
|
int |
pm2_5 = 0 , |
|
|
int |
pm10 = 0 , |
|
|
String |
cause = "PERIODIC_POLL" |
|
) |
| |
Sending air quality to SinricPro server.
- Parameters
-
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" ) |
- Returns
- the success of sending the event
- Return values
-
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |