TCP/IP - RGB LED Bricklet

This is the description of the TCP/IP protocol for the RGB LED Bricklet. General information and technical specifications for the RGB LED Bricklet are summarized in its hardware description.

API

A general description of the TCP/IP protocol structure can be found here.

Basic Functions

BrickletRGBLED.set_rgb_value
Function ID:

1

Request:
  • r -- uint8
  • g -- uint8
  • b -- uint8
Response:

no response

Sets the rgb value for the LED. The value can be between 0 and 255.

BrickletRGBLED.get_rgb_value
Function ID:

2

Request:

empty payload

Response:
  • r -- uint8
  • g -- uint8
  • b -- uint8

Returns the rgb value of the LED as set by set_rgb_value.

Advanced Functions

BrickletRGBLED.get_identity
Function ID:

255

Request:

empty payload

Response:
  • uid -- char[8]
  • connected_uid -- char[8]
  • position -- char
  • hardware_version -- uint8[3]
  • firmware_version -- uint8[3]
  • device_identifier -- uint16

Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.

The position can be 'a', 'b', 'c' or 'd'.

The device identifier numbers can be found here