REV - graznik/librsswitch GitHub Wiki

Device details

Vendor ID (librsswitch) Vendor Order number Remote control encoder
0 REV 008345 PT2260-R4S

API usage

Call the API function socket_send() from within your program in order to either switch a socket on or off.

socket_send(uint dev, uint group, uint socket, uint data);

Since the program is written in C, counting always starts with 0.

Parameters

Parameter dev: dev is always 0 for REV 008345 sockets.

See the following table for parameters group and socket:

Rotary switch position Parameter group Parameter socket
A1 0 0
A2 0 1
A3 0 2
B1 1 0
B2 1 1
B3 1 2
C1 2 0
C2 2 1
C3 2 2
D1 3 0
D2 3 1
D3 3 2

Parameter data: Use 0 for off and 1 for on.

###Examples

  • Use the following API call to switch on the second switch of socket group A): socket_send(0, 0, 1, 1);

  • Use the following API call to switch off the third switch of socket group B: socket_send(0, 1, 2, 0);

⚠️ **GitHub.com Fallback** ⚠️