Ejemplo n.º 1
0
        /// <summary>
        /// Create a bond with the bluetooth device at the address.
        /// </summary>
        /// <param name="address">The address to create a bond with.</param>
        /// <returns>MLResultCode.Ok on success, or failure</returns>
        public static MLResult CreateBond(string address)
        {
            NativeBindings.BluetoothAddress bleAddr = new NativeBindings.BluetoothAddress();

            bleAddr.SetAddress(address);

            return(MLResult.Create(NativeBindings.MLBluetoothAdapterCreateBond(ref bleAddr)));
        }