I have created devices that show up in the Device Management tab page with buttons and when the buttons are pressed I get an indication that they were pushed but how/where is the the code that gets executed? In HS2 we had functions like ButtonPressed() to deal with the code for the buttons. What do we use now? This is the code used to create buttons:
What would the code look like?
Code:
Pair = New VSPair(ePairStatusControl.Both) ' This is what appears in the device actions... Pair.PairType = VSVGPairType.SingleValue Pair.Value = 0 Pair.Status = "OFF" Pair.Render = Enums.CAPIControlType.Button If Not hs.DeviceVSP_AddPair(dvRef, Pair) Then End If Pair = New VSPair(ePairStatusControl.Both) ' This is what appears in the device actions... Pair.PairType = VSVGPairType.SingleValue Pair.Value = 1 Pair.Status = "ON" If Not hs.DeviceVSP_AddPair(dvRef, Pair) Then End If
Comment