monotooth : monotooth.Model.Connections Namespace

ServiceConnection Interface

A superinterface for service-oriented connections.

public interface ServiceConnection : , IConnection


Remarks

This interface only has service registration as a feature.

To connect to a specific service, first inquire devices, then use InquireServices with an UUID to connect to this specific service

Members

Properties

Connection [read-only]
RFCommConnection . The connection that was used for this service connection.

Methods

connect (uint)
Connects this connection to a specific service.
RegisterService (string, string, string, int, uint)
Registers a service to the local SDP server. This server must be running before any action can be undertaken.

Member Details

connect Method

public void connect (uint uuid)

Connects this connection to a specific service.

Parameters

uuid
The uuid to search for.

Remarks

To be added.

RegisterService Method

public void RegisterService (string name, string description, string vendor, int rfcomm_channel, uint uuid)

Registers a service to the local SDP server. This server must be running before any action can be undertaken.

Parameters

name
A name of the service.
description
Description of the service.
vendor
Possible vendor for the service.
rfcomm_channel
The rfcomm channel to listen for service connections.
uuid
The services UUID as unsigned integer.

Remarks

The UUID of the service is now implemented for simplicity as an unsigned integer.

Connection Property

public RFCommConnection Connection { get; }

The connection that was used for this service connection.

Value

To be added.

Remarks

To be added.