org.baraza.server.sms

## Class BSMSConnection

- java.lang.Object
- - org.baraza.server.sms.BSMSConnection

- All Implemented Interfaces:
    gnu.io.CommPortOwnershipListener, EventListener

      public class BSMSConnection
      extends Object
      implements gnu.io.CommPortOwnershipListener

- - ### Field Summary

    - ### Fields inherited from interface gnu.io.CommPortOwnershipListener

      `PORT_OWNED, PORT_OWNERSHIP_REQUESTED, PORT_UNOWNED`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BSMSConnection(String wantedPortName, String datarate, BLogHandle logHandle)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `gnu.io.SerialPort` | `getPort()`
    `void` | `ownershipChange(int type)`
    `void` | `sleep(int st)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BSMSConnection

          public BSMSConnection(String wantedPortName,
                        String datarate,
                        BLogHandle logHandle)
                         throws IOException,
                                RuntimeException,
                                Exception

      Throws:
        `IOException`
        `RuntimeException`
        `Exception`

  - ### Method Detail

    - #### getPort

          public gnu.io.SerialPort getPort()

    - #### close

          public void close()

    - #### sleep

          public void sleep(int st)

    - #### ownershipChange

          public void ownershipChange(int type)

      Specified by:
        `ownershipChange` in interface `gnu.io.CommPortOwnershipListener`

Copyright © 2016 openBaraza. All Rights Reserved.