MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
Functions
ibeacon.h File Reference

Configures iBeacon mode. More...

#include "peripheral_common.h"
#include "metawear/core/datasignal_fwd.h"

Go to the source code of this file.

Functions

METAWEAR_API void mbl_mw_ibeacon_set_major (const MblMwMetaWearBoard *board, uint16_t major)
 Sets the iBeacon advertising major number. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_major_signal (MblMwMetaWearBoard *board, const MblMwDataSignal *major)
 Sets the iBeacon advertising major number. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_minor (const MblMwMetaWearBoard *board, uint16_t minor)
 Sets the iBeacon advertising minor number. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_minor_signal (MblMwMetaWearBoard *board, const MblMwDataSignal *minor)
 Sets the iBeacon advertising minor number. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_period (const MblMwMetaWearBoard *board, uint16_t period)
 Sets the iBeacon advertising period. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_tx_power (const MblMwMetaWearBoard *board, int8_t tx_power)
 Sets the iBeacon advertising transmitting power. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_rx_power (const MblMwMetaWearBoard *board, int8_t rx_power)
 Sets the iBeacon advertising receiving power. More...
 
METAWEAR_API void mbl_mw_ibeacon_set_uuid (const MblMwMetaWearBoard *board, uint8_t ad_uuid[16])
 Sets the iBeacon advertising UUID. More...
 
METAWEAR_API void mbl_mw_ibeacon_enable (const MblMwMetaWearBoard *board)
 Enables iBeacon mode. More...
 
METAWEAR_API void mbl_mw_ibeacon_disable (const MblMwMetaWearBoard *board)
 Disables iBeacon mode. More...
 

Detailed Description

Configures iBeacon mode.

Function Documentation

◆ mbl_mw_ibeacon_disable()

METAWEAR_API void mbl_mw_ibeacon_disable ( const MblMwMetaWearBoard board)

Disables iBeacon mode.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_ibeacon_enable()

METAWEAR_API void mbl_mw_ibeacon_enable ( const MblMwMetaWearBoard board)

Enables iBeacon mode.

You will need to disconnect from the board to advertise as an iBeacon

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_ibeacon_set_major()

METAWEAR_API void mbl_mw_ibeacon_set_major ( const MblMwMetaWearBoard board,
uint16_t  major 
)

Sets the iBeacon advertising major number.

Parameters
boardPointer to the board to send the command to
majorNew advertising major number

◆ mbl_mw_ibeacon_set_major_signal()

METAWEAR_API void mbl_mw_ibeacon_set_major_signal ( MblMwMetaWearBoard board,
const MblMwDataSignal major 
)

Sets the iBeacon advertising major number.

Parameters
boardPointer to the board to send the command to
majorDataSignal output to use as the new major number

◆ mbl_mw_ibeacon_set_minor()

METAWEAR_API void mbl_mw_ibeacon_set_minor ( const MblMwMetaWearBoard board,
uint16_t  minor 
)

Sets the iBeacon advertising minor number.

Parameters
boardPointer to the board to send the command to
minorNew advertising minor number

◆ mbl_mw_ibeacon_set_minor_signal()

METAWEAR_API void mbl_mw_ibeacon_set_minor_signal ( MblMwMetaWearBoard board,
const MblMwDataSignal minor 
)

Sets the iBeacon advertising minor number.

Parameters
boardPointer to the board to send the command to
minorDataSignal output to use as the new minor number

◆ mbl_mw_ibeacon_set_period()

METAWEAR_API void mbl_mw_ibeacon_set_period ( const MblMwMetaWearBoard board,
uint16_t  period 
)

Sets the iBeacon advertising period.

Parameters
boardPointer to the board to send the command to
periodNew advertising period, in milliseconds

◆ mbl_mw_ibeacon_set_rx_power()

METAWEAR_API void mbl_mw_ibeacon_set_rx_power ( const MblMwMetaWearBoard board,
int8_t  rx_power 
)

Sets the iBeacon advertising receiving power.

Parameters
boardPointer to the board to send the command to
rx_powerNew advertising receiving power

◆ mbl_mw_ibeacon_set_tx_power()

METAWEAR_API void mbl_mw_ibeacon_set_tx_power ( const MblMwMetaWearBoard board,
int8_t  tx_power 
)

Sets the iBeacon advertising transmitting power.

Parameters
boardPointer to the board to send the command to
tx_powerNew advertising transmitting power

◆ mbl_mw_ibeacon_set_uuid()

METAWEAR_API void mbl_mw_ibeacon_set_uuid ( const MblMwMetaWearBoard board,
uint8_t  ad_uuid[16] 
)

Sets the iBeacon advertising UUID.

Parameters
boardPointer to the board to send the command to
ad_uuidByte representation of the UUID in little endian ordering