Skip to content

jforge/camel-tinkerforge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Tinkerforge Component (generated)

The Tinkerforge Apache Camel Component for a simple access for use the Tinkerforge Daemon, Bricks and Bricklets.

<dependency>
    <groupId>org.atomspace.camel</groupId>
    <artifactId>camel-tinkerforge</artifactId>
    <version>2.15.2</version>
</dependency>

Key Features

  • Support 100% of all Bricks and Bricklets

  • Support Selection over all Callbacks from every Bricklet

  • Support Configuration over Path-Variables

  • Support Configuration over Header-Variables inside Exchange

  • Support Request Reply Route like the Command Messages Pattern

  • Based on the model of the Tinkerforge-Generators

Version Matrix

camel-tinkerforge-Version Apache-Camel-Version Tinkerforge-SDK-Version
2.14.0 2.14.0 2.1.2
2.15.2 2.15.2 2.1.5
2.15.3 2.15.3 2.1.5

URI format

tinkerforgegen:[host[:port]/]deviceType?[uid=uid&options...]

General Options

Name Default Value Description
host localhost Hostname / IP-Address
port 4223 Port
secret Secret String for authenticate
autoReconnect true reconnection on broken connection
timeout 2500 Timeout
deviceType Temperatur, Line, IO-4, Color, MotionDetector, ...
uid UID of the Bricklet
callback add Device Listener to ConsumerEndpoint for receive values, if callback is null all Listeners will be registrate
function execute Device Function, can use for configure a ConsumerEndpoint and ProducerEndpoint or use dynamic in header for producerEndpoints

Supported Components

Accelerometer

AmbientLight

AmbientLightV2

AnalogIn

AnalogInV2

AnalogOut

AnalogOutV2

Barometer

Color

Current12

Current25

DC

DistanceIR

DistanceUS

DualButton

DualRelay

DustDetector

GPS

HallEffect

Humidity

IMU

IMUv2

IndustrialAnalogOut

IndustrialDigitalIn4

IndustrialDigitalOut4

IndustrialDual020mA

IndustrialDualAnalogIn

IndustrialQuadRelay

IO16

IO4

Joystick

LCD16x2

LCD20x4

LEDStrip

LaserRangeFinder

Line

LinearPoti

LoadCell

Master

Moisture

MotionDetector

MultiTouch

NFCRFID

PiezoBuzzer

PiezoSpeaker

RS232

PTC

RED

RemoteSwitch

RotaryEncoder

RotaryPoti

SegmentDisplay4x7

Servo

SolidStateRelay

SoundIntensity

Stepper

Temperature

TemperatureIR

Tilt

Voltage

VoltageCurrent

General Message Headers

Header Description
uid Device UID
connectedUid Connected UID
deviceIdentifier Identifier of Device
position Device Postiontion on Brick

Samples endpoints


Typically connection where the daemon running on same system

<route>
  <from uri="timer://foo?period=10000"/>
  <to uri="tinkerforgegen:temperture?uid=ABC&function=getTemperature" />
  <to uri="log:temperature?level=INFO&showHeaders=true"/>
</route>

Use remote temperatur sensor inside an Request Reply Route

<route>
  <from uri="jetty:0.0.0.0:8044/bathroom" />
  <to uri="tinkerforgegen:192.168.4.17:1433/temperature?uid=ABC&function=getTemperature" />
</route>

Temperatur consumer from remote masterbrick

<route>
  <from uri="tinkerforgegen:192.168.4.17:1433/temperature?uid=ABC&init=setTemperatureCallbackPeriod&period=5000" />
  <to uri="bean:save"/>
</route>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.7%
  • JavaScript 3.3%