Skip to content

Commands: System

BPI Services Dev edited this page Nov 22, 2018 · 4 revisions

System device

The main iMatch device. Provides the following functions:

  • datetime returns the current datetime of the iMatch when params is left empty. Needs to be set on startup!

    The datetime format is an 8-tuple: (year, month, day, weekday, hours, minutes, seconds, subseconds)

  • info returns firmware version, revision and build data in the response.

  • echo returns the supplied params as data in the response.

  • led sets the specified led to the specified color. The params format is a 2-tuple (led,color).

    • led possible values are either 1 (left led) or 2 (right led)
    • color possible values are:
      • 0 (off)
      • 1 (red)
      • 2 (green)
      • 3 (yellow)
      • 4 (blue)
      • 5 (cyan)
      • 6 (magenta)
      • 7 (white)

Clone this wiki locally