ezeio2:scriptref:getdevicestatus

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
ezeio2:scriptref:getdevicestatus [2020-06-15 18:37] – created andrehezeio2:scriptref:getdevicestatus [2020-06-15 18:43] andreh
Line 11: Line 11:
 === Parameters === === Parameters ===
  
-| ''deviceno'' | Device number to request status from (or 0 for aggregate status) |+| ''deviceno'' | Device number to request status from (or 0 for all devices) |
 | ''status item'' | The status item to return (see below) | | ''status item'' | The status item to return (see below) |
  
Line 32: Line 32:
  
 <code javascript>    <code javascript>   
-   if( GetDeviceStatus(0, DVCSTAT_STAT) < DS_OK ) {+   if( GetDeviceStatus(0, DVCSTAT_STAT) < DS_OK ) {  // Get 'worst' status from all devices
       // DEVICE ERROR DETECTED -- SHUT OFF PROCESS       // DEVICE ERROR DETECTED -- SHUT OFF PROCESS
       SetOutput(1, 0);       SetOutput(1, 0);
  • ezeio2/scriptref/getdevicestatus.txt
  • Last modified: 2021-06-14 22:45
  • by andreh