Skip to content

OSC interface

Bart De Lathouwer edited this page May 20, 2024 · 13 revisions

The primary interface for Ethernet to GPO and GPI to Ethernet is done through OSC. The basic syntax for sending and receiving OSC messages is /press/button/<bankNr>/<index>

Bank number

Similar to a channel, a way to set multiple devices on the same network apart. Be default the Bank number is 1. This could be any number, larger than zero and less that 65535. This number is checked again for incoming messages and is included in outgoing messages (so the same bankNr for in~ and output). Incoming messages with a different bank number will be ignored.

Set bank number in the web interface.

Screenshot 2024-05-20 at 17 33 02

Hit the Save button and changes will take effect immediately (no reboot needed).

Using CURL to set the settings

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 '{
{
  'bank': 1
}