Constructor
new AlertTemperature(alertType, to, cc, bcc, emailSubject, emailContent, enabled, tMin, tMax)
AlertTemperature default constructor.
Parameters:
Name | Type | Description |
---|---|---|
alertType |
AlertType | Type of Alert (AlertType value). |
to |
string | List of email addresses (split with commas) to send the alert to. |
cc |
string | List of "Cc" recipients (split with commas). |
bcc |
string | List of "Bcc" recipients (split with commas). |
emailSubject |
string | Subject of the email to be sent. |
emailContent |
string | Content of the email to be sent. |
enabled |
boolean | If false, the alert will not be used by the device. |
tMin |
number | Minimum allowed temperature. |
tMax |
number | Maximum allowed temperature. |
Methods
getTemperatureMax() → {number}
Returns:
Maximum allowed temperature.
- Type
- number
getTemperatureMin() → {number}
Returns:
Minimum allowed temperature.
- Type
- number
serialize() → {string}
Specialization of the serialization from Alert.
Add the temperature limit values (minimum and maximum).
Returns:
The base64 encoded XML AlertTemperature.
- Type
- string
setTemperatureMax(maxValue)
Update the maximum temperature limit.
Parameters:
Name | Type | Description |
---|---|---|
maxValue |
number | Maximum threshold. |
setTemperatureMin(minValue)
Update the minimum temperature limit.
Parameters:
Name | Type | Description |
---|---|---|
minValue |
number | Minimum threshold. |