4.8. IPeripheralConnectParser

added in version 1.3.0

An interface to provide functions to generate commands to get the connection/disconnection status of the peripheral.

This interface is only for models which support the peripheral. For the supporting models, refer to Supported Peripherals .

  • Member

    Name

    Contents

    isConnected

    Gets the connection/disconnection status of the peripheral.

4.8.1. isConnected

added in version 1.3.0

Gets the connection/disconnection status of the peripheral.

Executes after the Parse returns Success .

  • Declaration

    bool IsConnected { get; }
    
  • Parameter

    None

  • Return value

    Contents Type
    The connection/disconnection status of the peripheral. bool
  • Examples

    IPeripheralConnectParser parser = StarIoExt.CreateDisplayConnectParser(DisplayModel.SCD222);
    
    var result = await Communication.ParseDoNotCheckCondition(parser, port);
    if (parser.IsConnected)
    {
        // Implementation
    }
    

    Refer to DisplaySamplePage.xaml.cs/DisplayExtSamplePage.xaml.cs.