Public Member Functions | |
def | __init__ |
def | __str__ |
def | __family__ |
def | available |
def | readString |
def | writeString |
![]() | |
def | __init__ |
def | open |
def | close |
def | read |
def | readBytes |
def | readByte |
def | write |
def | writeBytes |
def | writeByte |
Public Attributes | |
baudrate | |
![]() | |
busName | |
device | |
flag | |
fd | |
def webiopi.devices.serial.Serial.__init__ | ( | self, | |
device = "/dev/ttyAMA0" , |
|||
baudrate = 9600 |
|||
) |
def webiopi.devices.serial.Serial.__str__ | ( | self | ) |
Definition at line 68 of file serial.py.
References webiopi.devices.serial.Serial.baudrate, and webiopi.devices.bus.Bus.device.
def webiopi.devices.serial.Serial.available | ( | self | ) |
Definition at line 74 of file serial.py.
References webiopi.devices.bus.Bus.fd, webiopi.decorators.rest.request(), and coap-client.response.
Referenced by webiopi.devices.serial.Serial.readString().
def webiopi.devices.serial.Serial.readString | ( | self | ) |
Definition at line 80 of file serial.py.
References webiopi.devices.serial.Serial.available(), org.apache.commons.codec.binary.BaseNCodec.available(), webiopi.devices.bus.Bus.read(), webiopi.clients.ADC.read(), and webiopi.decorators.rest.request().
def webiopi.devices.serial.Serial.writeString | ( | self, | |
data | |||
) |
Definition at line 86 of file serial.py.
References webiopi.devices.bus.Bus.write(), and webiopi.clients.DAC.write().
webiopi.devices.serial.Serial.baudrate |
Definition at line 37 of file serial.py.
Referenced by webiopi.devices.serial.Serial.__str__().