org.mule.modules

mule-module-blink1

config

Namespacehttp://www.mulesoft.org/schema/mule/blink1
Schema Locationhttp://www.mulesoft.org/schema/mule/blink1/current/mule-blink1.xsd  (View Schema)
Schema Version1.0
Minimum Mule Version3.4.0

Module Overview

A connector for the blink(1) device.

Summary

Configuration
<blink1:config>
Configure an instance of this module
Message Processors
<blink1:clear-pattern>
Clear the pattern stored in a blink(1) device.
<blink1:fade-to-color>
Fade-in the color.
<blink1:get-statuses>
Get the status of all the connected blink(1) devices.
<blink1:set-color>
Set the color.
<blink1:start-pattern>
Start playing the stored pattern.
<blink1:start-server-down>
Schedule playing the server down pattern.
<blink1:stop-pattern>
Stop playing the stored pattern.
<blink1:stop-server-down>
Stop playing the server down pattern or cancel its scheduled execution.
<blink1:store-pattern>
Store a pattern.

Configuration

To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:

<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:blink1="http://www.mulesoft.org/schema/mule/blink1"
      xsi:schemaLocation="
               http://www.mulesoft.org/schema/mule/core
               http://www.mulesoft.org/schema/mule/core/current/mule.xsd
               http://www.mulesoft.org/schema/mule/blink1
               http://www.mulesoft.org/schema/mule/blink1/current/mule-blink1.xsd">

      <!-- here goes your flows and configuration elements -->

</mule>

Message Processors

<blink1:clear-pattern>

Clear the pattern stored in a blink(1) device.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*

<blink1:fade-to-color>

Fade-in the color.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*
duration Time in milliseconds that the fading lasts. int */*
color Either a Color name or an HTML color. String */* UTF-8

<blink1:get-statuses>

Get the status of all the connected blink(1) devices.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
Returns
Return Type Description
List<Blink1Status> a List of Blink1Status, possibly empty but never null.

<blink1:set-color>

Set the color.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*
color Either a Color name or an HTML color. The on and off aliases are recognized as WHITE and BLACK. String */* UTF-8

<blink1:start-pattern>

Start playing the stored pattern.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*
position 0 Optional. Where to start playing the pattern. Between 0 and MAX_PATTERN_POSITION. int */*

<blink1:start-server-down>

Schedule playing the server down pattern.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*
delay 0 Optional. Time in milliseconds after which the pattern will play. int */*

<blink1:stop-pattern>

Stop playing the stored pattern.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*

<blink1:stop-server-down>

Stop playing the server down pattern or cancel its scheduled execution.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*

<blink1:store-pattern>

Store a pattern.

XML Sample
INCLUDE_ERROR

Attributes
NameDefault ValueDescriptionJava TypeMIME TypeEncoding
config-ref Optional. Specify which configuration to use.
deviceId Unique identifier of the device. int */*
startPosition 0 Optional. Position at which the pattern must be stored. Between 0 and MAX_PATTERN_POSITION. int */*
Child Elements
NameDefault ValueDescriptionJava Type
<blink1:entries> Definition of the pattern. List<PatternEntry>

Message Sources

Transformers