Trigger a script to run in a gateway context from client

Trying to figure out an easy way for a client script to trigger a script to run in a gateway context.

I can set the “gateway” script up in a timer event with a message handler (never done this, but should work).

Or maybe setup a tag with an event script (which includes the script I want to run in a gateway context) that I trigger via a write.

Anything easier?

Thanks.
-Shane

sendMessage (or sendRequest, if you need a return value) is absolutely the way to go.

7 Likes