itm / wsn-device-drivers

Drivers for Wireless Sensor Network Devices
Other
6 stars 4 forks source link

Add an optional injection of the output stream buffer size of SendOutputStream wrapper #59

Closed mlegenhausen closed 13 years ago

mlegenhausen commented 13 years ago

Create an annoation that can be used for SimpleSendOperation and SendOutputStreamWrapper for injection of an integer.

mlegenhausen commented 13 years ago

Simply bind the new max message length with

bind(Integer.class).annotatedWith(MaxMessageLength.class).toInstance(150);