Skip to content

ConcepterDev/iblazr-sdk-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iblazrSDK

Android iblazr SDK for communicating with the iblazr 2 via Bluetooth http://concepter.co

Overview

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)

How To Get Started

Installation

In your Android Studio select File -> New -> Import Module and choose our iblazrbluetoothlib. Then add this Module Dependency ;)

Device parameters

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: lightTemperature in current version you can set 25 as maximum value. In STDeviceManager.m line:290 it be multiply with 5.

Start using

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();

Additional Resources

You can find additional protocol information here:

  • iblazr 2 documentation at LINK
  • iblazr original documentation at LINK

License

iblazrSDK is licensed under the MIT License. See LICENSE for details.

Feedback

Contact the developer support team by sending an email to [email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages