ezeio2:scriptref:updatedevicestatus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ezeio2:scriptref:updatedevicestatus [2020-06-15 18:57] – created andrehezeio2:scriptref:updatedevicestatus [2020-06-15 19:01] (current) andreh
Line 27: Line 27:
  
 <code javascript>    <code javascript>   
-   UpdateDeviceStatus( 3, DS_COM_OK, _, DS_APP_OK );+    
 +   // Indicate normal condition 
 +   UpdateDeviceStatus( 3, DS_COM_OK, DS_OP_FULL, DS_APP_OK ); 
 +    
 +   // Indicate marginal communication condition 
 +   UpdateDeviceStatus( 3, DS_COM_ERROR, DS_OP_UNKNOWN, DS_APP_UNKNOWN ); 
 + 
 +   // Indicate application status 
 +   new batteryVoltage = 12345; // read the battery voltage from the device 
 +   UpdateDeviceStatus( 3, _, _, DS_APP_OK, _, batteryVoltage ); 
 +   
 </code> </code>
  
  • ezeio2/scriptref/updatedevicestatus.1592247420.txt.gz
  • Last modified: 2020-06-15 18:57
  • by andreh