nfc_create_handover_bluetooth_carrier_record()

Create an NFC Forum Bluetooth carrier NDEF record for connection handover.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_create_handover_bluetooth_carrier_record(const char *mac_addr, const char *device_name, unsigned int device_class, nfc_ndef_record_t **rec)

Since:

BlackBerry 10.0.0

Arguments:

mac_addr
The MAC address of Bluetooth device. A valid MAC address must have the following format:
  • 00:00:00:00:00:00\0
  • 18 bytes in size
  • NULL terminated
  • 2 HEX digits per byte
  • HEX digits at the end of address string
device_name

The Bluetooth device name.

device_class

The Bluetooth class of device.

rec

The returned Bluetooth carrier NDEF record.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function creates an NFC Forum Media NDEF record with record type "application/vnd.bluetooth.ep.oob".

Returns:

NFC_RESULT_SUCCESS, or one of the following: