Initialize Moxa LED control library.
- 0 on success.
- negative numbers on error.
Set LED state on, off, blink.
- led_type: LED_TYPE_SIGNAL or LED_TYPE_PROGRAMMABLE
- group: the group number
- index: the LED index
- state: LED_STATE_OFF or LED_STATE_ON or LED_STATE_BLINK
- 0 on success.
- negative numbers on error.
Set all LED off.
- 0 on success.
- negative numbers on error.
Set all LED on.
- 0 on success.
- negative numbers on error.