Sub Main ()
ui = CreateObject ("roInput")
port = CreateObject ("roMessagePort")
ui.SetMessagePort(port)
While True
msg = Wait (0, port)
If Type (msg) = "roInputEvent"
Print msg.GetInfo ()
End If
End While
End Sub
curl -X POST "http://192.168.0.6:8060/input?phaser=stun&dispersalPattern=focused&power=42000&units=exoJoules"
------ Running dev 'ncc 1701' main ------
phaser: stun
dispersalPattern: focused
power: 42000
units: exoJoules
"belltown" wrote:
I think the sensor makers can post whatever inputs they want from their sensors:
"RokuJoel" wrote:
roInput allows you to http post data from, say, a smartphone to a running channel and the channel gets the data via an roInputEvent. It is documented to some degree in that section with some example URLs.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!