Blaubot 2.0.0.alpha.4

Jun 22, 2015

The fourth alpha is now available from jCenter and MavenCentral.
It contains some fixes and a new option for the BlaubotChannelConfig.
You can now enable or disable the transmission of messages through the network published by a IBlaubotChannel you are also subscribed to.
With this option, you can reduce the network traffic in these situations.
Furthermore channel messages will not be send anymore if there are no subscribers.
Apart from that, the beacon mechanism was slightly improved to fasten network discovery.

You can use the new options like shown below.

IBlaubotChannelchannel=// ...// reduce network traffic for some cases where we publish to // a channel to which we are subscribed.channel.getChannelConfig().setTransmitReflexiveMessages(false);// always publish messages, even if we call publish() on a // channel without any subscriberschannel.getChannelConfig().setTransmitIfNoSubscribers(true);

Additionally the DebugViews got some updates.
You can now expand the StateHistoryView by clicking on it and a long click on the Ping-Button (PingView) will trigger a PingMeasurement.

The BlaubotKingdoms now have a method to get the current connected devices:

Note that you can also attach the KingdomCensusLifecycleListener to a Blaubot instance to always have an accessible Set of connected devices:

IBlaubotDeviceownDevice=blaubot.getOwnDevice();KingdomCensusLifecycleListenercensusListener=newKingdomCensusLifecycleListener(ownDevice);blaubot.addLifecycleListener(censusListener);// contains all currently connected devicesSet<IBlaubotDevice>devices=censusListener.getDevices();