.. highlight:: java

IBeacon
=======

A cool feature of the MetaWear is that it can also function as an IBeacon; all you need to do is call the `enable <https://mbientlab.com/docs/metawear/android/latest/com/mbientlab/metawear/module/IBeacon.html#enable()>`_ method and disconnect from the board to have the board advertise as an IBeacon.  Advertisement parameters can be modified with the module's `ConfigEditor <https://mbientlab.com/docs/metawear/android/latest/com/mbientlab/metawear/module/IBeacon.ConfigEditor.html>`_.

::

    import com.mbientlab.metawear.module.IBeacon;
    
    // Enable IBeacon mode
    mwBoard.getModule(I2C.class).enable();
    mwBoard.disconnect();