Table of Contents

Interface IPlatformMulti

Namespace
PalmSens.Core.Simplified
Assembly
PalmSens.Core.Simplified.dll
public interface IPlatformMulti

Methods

Connect(IReadOnlyList<Device>, IList<int>)

Connects to the specified channels. Warning use the platform independent method Connect() instead. Otherwise the generic PSMultiCommSimple does not subscribe to the CommManagers correctly

Task<IReadOnlyList<(CommManager Comm, int ChannelIndex, Exception Exception)>> Connect(IReadOnlyList<Device> devices, IList<int> channelIndices = null)

Parameters

devices IReadOnlyList<Device>

Array devices to connect to.

channelIndices IList<int>

Array of unique indices for the specified channel (0, 1, 2, 3... by default)

Returns

Task<IReadOnlyList<(CommManager Comm, int ChannelIndex, Exception Exception)>>

Disconnect(IReadOnlyList<CommManager>)

Disconnects from channel with the specified CommManagers. Warning use the platform independent method Disconnect() instead. Otherwise the generic PSMultiCommSimple does not unsubscribe from the CommManagers correctly which may result in it not being released from the memory.

Task<IReadOnlyList<(int ChannelIndex, Exception Exception)>> Disconnect(IReadOnlyList<CommManager> comms)

Parameters

comms IReadOnlyList<CommManager>

The comm.

Returns

Task<IReadOnlyList<(int ChannelIndex, Exception Exception)>>

GetAvailableDevices()

Task<IReadOnlyList<Device>> GetAvailableDevices()

Returns

Task<IReadOnlyList<Device>>

MatchDevices(Device)

Replaces the instance of a device with a new one if possible. This is used to recover a dropped connection.

Task<Device> MatchDevices(Device deviceInErrorState)

Parameters

deviceInErrorState Device

Returns

Task<Device>