Hi,
Can anyone help point me in the direction of pulling the value of a Device_SubType?
I would like to populate a Virtual Device with the 'Battery days left' value.
I apologise for my code as I have next to nothing in terms of coding experience, but I've tried to write it as logically (how I understand it) as possible.
I've basically lifted bits from the HS3 End User Doc
THANKS!
Can anyone help point me in the direction of pulling the value of a Device_SubType?
I would like to populate a Virtual Device with the 'Battery days left' value.
I apologise for my code as I have next to nothing in terms of coding experience, but I've tried to write it as logically (how I understand it) as possible.
I've basically lifted bits from the HS3 End User Doc
Code:
sub main() Dim myVal as string Dim DT As New DeviceAPI.DeviceTypeInfo DT.Device_SubType_Description = "Battery days left" [COLOR=Red]'here I think I need to set myVal to be the value of Device_SubType_Description value? Then set my Virtual device (443) to equal myVal [/COLOR] hs.setdevicestring(443, myVal,true) end sub
Comment