-
Notifications
You must be signed in to change notification settings - Fork 0
OSC interface ‐ GPI to Ethernet
When a contact is closed on the gpio 6i6o port, it generates an OSC message and sent to a host
on a port
.
Example: if contact 4 is closed, OSC bundle /press/bank/1/4
is sent to 192.168.0.100
on port 12321
.
By default, these values are not set and no outgoing messages will be sent when a GPI contact closes. The leds on the front of the device will not be lit. When you provide a host and port (and Save), the leds will light up.
Hit the Save
button and changes will take effect immediately (no reboot needed).
By default, a OSC bundle is sent when contact closes, not when it opens again. This behaviour can be changed in the web interface, generating also a message when the contact opens again.
All the above setting can be sent to the device using CURL, Insomnia or Postman (or any other REST API tool).
Example:
curl --request POST \
--url http://192.168.0.220/osc \
--header 'Content-Type: application/json' \
--data '{
{
'gpi_to_ethernet': {
'host': '0.0.0.0',
'port': 12321,
'reactOnContactClosed': true,
'reactOnContactOpen': false
}
}