ph_getupblevelrt PowerHome formula function
Description
Returns the level for the specified UPB device in realtime.
Syntax
ph_getupblevelrt ( id )
| Argument |
Description |
| id |
String. The ID of the UPB device whose level you wish
returned. |
Return value
Integer. The level of the specified UPB device (0 thru 100) if
successful. Otherwise, these error values are returned:
| - 100 |
Could not find ID in database |
| - 1 |
Controller not found |
| - 2 |
Internal error |
| - 3 |
Controller not connected |
| - 4 |
Could not communicate with
device |
This function will actually query the specified UPB device in
realtime waiting for the device to return its level.