An roInput object can be used to receive events sent from a network client using the External Control Protocol (ECP), as described in External Control API.
See External Control Service Commands for information about the ECP input command.
This object is created without any arguments:
The following prints information received from an external device in JSON format. If the external device sends the following input command:
curl -d '' '<roku_target_device>:8060/input?my_event=My%20Test&x=100&y=200&action=start'
The following will be printed: