Android iblazr SDK for communicating with the iblazr 2 via Bluetooth http://concepter.co
This SDK provides a Java classes and interfaces for access to iblazr 2 via CoreBluetooth. All the following code compatible on phones with Android 4.3 or higher and Bluetooth 4.0.
NOTE: not working in simulator
P.S.: current version was taken from our Shotlight App as is, if you don’t understand anything, don’t hesitate to contact us (see at feedback section)
- Download iblazrSDK and try out the included example iblazr2Demo app
- Read the "Getting Started" guide
In your Android Studio select File -> New -> Import Module and choose our iblazrbluetoothlib. Then add this Module Dependency ;)
Check STDevice.h,STDeviceIblazr2.h and STDeviceIblazrOriginal.h for get available parametrs.
float lightPower - value can be in range 0-16
float lightTemperature; - value can be in range 0-125
NOTE:
lightTemperaturein current version you can set 25 as maximum value. InSTDeviceManager.mline:290 it be multiply with 5.
Simple setup for iblazr2
BLEManager bleManager = BLEManager.getInstance(bluetoothManager.getAdapter(), this, new OnIblazrDeviceDiscoverCallback());
bleManager.findDeviceFromConnectedDevices();
bleManager.scanLeDevice(true);Simple setup for iblazr Original
MJIblazrManager mjIblazrManager = MJIblazrManager.getInstance();
registerReceiver(mjIblazrManager, new IntentFilter(Intent.ACTION_HEADSET_PLUG));Make flash
// Set custom temperature, you can set values from 0 to 0x7D and check it. You can take BLEIblazrDevice in onDeviceDiscovered(final BLEIblazrDevice
// device) of OnIblazrDeviceDiscoverCallback
BLEIblazrDevice bleIblazrDevice;
bleIblazrDevice.setTemperature(0x7D, BLEIblazrDevice.SHORT_LIGHT);Send check notification to iblazr flash. You can manualy setup this effect. (Works with iblazr 2. Read additional documentation)
// set custom brightness, you can set value from 0 to 0x3F
device.setBrightness(0x3F, BLEIblazrDevice.SHORT_LIGHT);And Stop
// It sends zero time to iblazr2
bleIblazrDevice.stop();You can find additional protocol information here:
iblazrSDK is licensed under the MIT License. See LICENSE for details.
Contact the developer support team by sending an email to support@concepter.co