obniz Parts Library

iBS04i

GitHub
iBS04i
Usable Devices :
obniz_board
Found at :

iBS04i

beacon advertising device made by INGICS.

Support device

  • iBS04i

getPartsClass(name)

// Javascript Example
const IBS04I = Obniz.getPartsClass('iBS04i');

isDevice(BleRemotePeripheral)

Returns true if a device was found.

// Javascript Example
const IBS04I = Obniz.getPartsClass('iBS04i');
await obniz.ble.initWait();
obniz.ble.scan.onfind = (p) => {
    if (IBS04I.isDevice(p)) {
        let data = IBS04I.getData(p);
        console.log(data);
    }
};
await obniz.ble.scan.startWait(null, { duplicate: true, duration: null });

getData(BleRemotePeripheral)

Returns device information if found. Returns Null if not found.

  • battery : Battery voltage
  • button : Button pressed: true
  • uuid : iBeacon UUID
  • major : iBeacon major
  • minor : iBeacon minor
  • power : iBeacon power
  • rssi : Signal strength
// Javascript Example
const IBS04I = Obniz.getPartsClass('iBS04i');
await obniz.ble.initWait();
obniz.ble.scan.onfind = (p) => {
    if (IBS04I.isDevice(p)) {
        let data = IBS04I.getData(p);
        console.log(data);
    }
};
await obniz.ble.scan.startWait(null, { duplicate: true, duration: null });

Supported from: obniz.js 3.5.0

You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers

Forum

Visit our developer’s forum to discuss and discover technologies.

Forum

Contact

Feel free to contact out support and technical team.

Contact us