Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ezeio2:scriptref:updatedevicestatus [2020-06-15 18:57] – created andreh | ezeio2:scriptref:updatedevicestatus [2020-06-15 19:01] (current) – andreh | ||
---|---|---|---|
Line 27: | Line 27: | ||
<code javascript> | <code javascript> | ||
- | | + | |
+ | // Indicate normal condition | ||
+ | UpdateDeviceStatus( 3, DS_COM_OK, DS_OP_FULL, DS_APP_OK ); | ||
+ | |||
+ | // Indicate marginal communication condition | ||
+ | | ||
+ | |||
+ | // Indicate application status | ||
+ | new batteryVoltage = 12345; // read the battery voltage from the device | ||
+ | | ||
+ | |||
</ | </ | ||