monotooth : monotooth.Model.Device Namespace

LinuxDevice Class

The linux implementation of IDevice

public class LinuxDevice : IDevice


Remarks

To be added.

Members

See Also: Inherited members from object.

Constructors

The default constructor for linux implementation
This is the alternative constructor for constructing a LinuxDevice with specific address and name.

Properties

Address
monotooth.Model.BluetoothAddress . Implemented properties from IDevice, this property defines address.
FriendlyName
string . Implemented properties from IDevice, this property defines FriendlyName of the device.
Services
monotooth.Model.Service.ServicePool . Implemented properties from IDevice, this property defines a pool of Services.

Methods

AddressAsString () : string
Returns the devices address as string.
Inquire () : DevicePool
Inquire devices from the surrounding area, uses a native method to achieve good inquiry.
InquireServices (IDevice, uint) : monotooth.Model.Service.ServicePool
Inquires services from a given device. The service UUID can also be specified.
StringAsAddress (string) : monotooth.Model.BluetoothAddress
Returns a monotooth.Model.BluetoothAddress from a string, using a native function.

Member Details

LinuxDevice Constructor

public LinuxDevice ()

The default constructor for linux implementation

Remarks

To be added.

LinuxDevice Constructor

public LinuxDevice (monotooth.Model.BluetoothAddress addr, string name)

This is the alternative constructor for constructing a LinuxDevice with specific address and name.

Parameters

addr
To be added.
name
To be added.

Remarks

To be added.

Address Property

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

Implemented properties from IDevice, this property defines address.

Value

To be added.

Remarks

To be added.

AddressAsString Method

public string AddressAsString ()

Returns the devices address as string.

Returns

A string with the native address of the device.

Remarks

To be added.

FriendlyName Property

public string FriendlyName { set; get; }

Implemented properties from IDevice, this property defines FriendlyName of the device.

Value

To be added.

Remarks

To be added.

Inquire Method

public DevicePool Inquire ()

Inquire devices from the surrounding area, uses a native method to achieve good inquiry.

Returns

A DevicePool, in which all the devices are added, if any.

Remarks

To be added.

InquireServices Method

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

Inquires services from a given device. The service UUID can also be specified.

Parameters

dev
An instance of an IDevice, used to dig up an address.
uuid
An unsigned integer to describe a certain service.

Returns

To be added.

Remarks

To be added.

Services Property

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

Implemented properties from IDevice, this property defines a pool of Services.

Value

To be added.

Remarks

To be added.

StringAsAddress Method

public monotooth.Model.BluetoothAddress StringAsAddress (string addr)

Returns a monotooth.Model.BluetoothAddress from a string, using a native function.

Parameters

addr
To be added.

Returns

New address.

Remarks

To be added.