monotooth : monotooth.Model.Device Namespace

IDevice Interface

The superinterface for all devices. The sole purpose for this interface is to offer as much information as possible for the means of using devices.

public interface IDevice


Remarks

To be added.

Members

Properties

Address
monotooth.Model.BluetoothAddress . The devices address.
FriendlyName
string . The friendly name of this device (the human readable form).
Services
monotooth.Model.Service.ServicePool . The services that this device offers.

Methods

AddressAsString () : string
Returns the 48-bit bluetooth address of this device as a string .
Inquire () : DevicePool
This method searches the surrounding area for devices, and then adds them to a device pool.
InquireServices (IDevice, uint) : monotooth.Model.Service.ServicePool
Inquires services from the specified device, then adding them to service pool.
StringAsAddress (string) : monotooth.Model.BluetoothAddress
Converts a string presentation of a bluetooth address to a BluetoothAddress.

Member Details

Address Property

public monotooth.Model.BluetoothAddress Address { set; get; }

The devices address.

Value

A 48-bit bluetooth address.

Remarks

To be added.

AddressAsString Method

public string AddressAsString ()

Returns the 48-bit bluetooth address of this device as a string .

Returns

String presentation of this devices bluetooth address.

Remarks

To be added.

FriendlyName Property

public string FriendlyName { set; get; }

The friendly name of this device (the human readable form).

Value

A string.

Remarks

To be added.

Inquire Method

public DevicePool Inquire ()

This method searches the surrounding area for devices, and then adds them to a device pool.

Returns

A pool of devices, see monotooth.Model.Device.DevicePool.

Remarks

To be added.

InquireServices Method

public monotooth.Model.Service.ServicePool InquireServices (IDevice dev, uint uuid)

Inquires services from the specified device, then adding them to service pool.

Parameters

dev
The device to search services from.
uuid
The uuid of the service to search for, to search all services, set this parameter to 0.

Returns

A pool of services, see monotooth.Model.Service.ServicePool.

Remarks

To be added.

Services Property

public monotooth.Model.Service.ServicePool Services { set; get; }

The services that this device offers.

Value

A pool of services.

Remarks

To be added.

StringAsAddress Method

public monotooth.Model.BluetoothAddress StringAsAddress (string addr)

Converts a string presentation of a bluetooth address to a BluetoothAddress.

Parameters

addr
A bluetooth address as string.

Returns

A bluetooth address wrapped to a class.

Remarks

To be added.