User Protocol question...


Recommended Posts

No, if you need to output a string, just use a function in your protocol instead. If you want to trigger it from a channel, use a channel with device type "Test", I/O type "String" and then call your protocol function with the most recent value of that channel from the Event of the channel:

So, assuming you have a function called device.mydevice.SetOut(strSetTo)

1) create a new channel, lets say its called "output"

2) Device type = "Test"

3) I/O type = "String"

4) In the Event for the channel, put: device.mydevice.SetOut(output[0])

This will cause your function to be called whenever the "output" channel is set to a string.

Link to comment
Share on other sites

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.