Changing Broadcast parameters on event
I try to change broadcast signals on triggering of an event. It works ~50% of the cases immediately. Sometimes it's delayed for minutes, sometimes it changes device name but then changes back after a while again. I have a led flashing also on the same event to confirm the event was triggered. Also I have a macro that changes back the name at board disconnect and that macros runs all the time with an immediate change of broadcast name.. Have 3 different devices with android 4.4.1 and 5.1.1 that I listen with. Tested with Firmware 1.1.2 and 1.1.3
accelModule.routeData().fromAxes().split()
.branch().log(ACCEL_DATA)
.branch().process(new Rms()).process(new Comparison(Comparison.Operation.GT, 1)).stream("alarm")
.monitor(new DataSignal.ActivityHandler() {
public void onSignalActive(Map<String, DataProcessor> map, DataSignal.DataToken dataToken) {
settingsModule.configure().setDeviceName(ALARM)
.setAdInterval((short) 500, (byte) 0)
.setTxPower((byte) 4)
.commit();
ledModule.configureColorChannel(Led.ColorChannel.BLUE)
.setRiseTime((short) 0)
.setPulseDuration((short) 1000).setRepeatCount((byte) 1)
.setHighTime((short) 500).setHighIntensity((byte) 16)
.setLowIntensity((byte) 16).commit();
ledModule.play(false);
}
This discussion has been closed.
Comments