CyberAtom Python Library

2.5.0

Public Member Functions | Public Attributes | List of all members
cyberatom.SerialConnection Class Reference

Provides connection to the device via computer's serial port. More...

Inheritance diagram for cyberatom.SerialConnection:

Public Member Functions

def __init__ (self, portName, baudRate)
 
def __del__ (self, release=cyberatom.IConnection_release)
 
def sendMessage (self, code, payload, len)
 
def checkForMessages (self, receiver)
 

Public Attributes

 portName
 
 baudRate
 
 handle
 

Detailed Description

Provides connection to the device via computer's serial port.

Constructor & Destructor Documentation

def cyberatom.SerialConnection.__init__ (   self,
  portName,
  baudRate 
)
Parameters
portNameName of serial port used to communicate with the device. On Windows system that would be COMx and on Linux/Unix system typically /dev/ttyXXX.
baudRateCommunication rate in bauds.

Member Function Documentation

def cyberatom.SerialConnection.checkForMessages (   self,
  receiver 
)
Parameters
receiver
def cyberatom.SerialConnection.sendMessage (   self,
  code,
  payload,
  len 
)
Parameters
code
payload
len

The documentation for this class was generated from the following file: