Public Member Functions | |
def | __init__ (self, serial, bus, lang=None) |
def | on_stop_handled (self, event) |
def | process (self, data) |
def | read (self) |
def | stop (self) |
Public Attributes | |
alive | |
bus | |
daemon | |
lang | |
serial | |
Reads data from Serial port. Listens to all commands sent by Arduino that must be be performed on Mycroft Core. E.g. Mycroft Stop Feature #. Arduino sends a Stop command after a button press on a Mycroft unit #. ``EnclosureReader`` captures the Stop command #. Notify all Mycroft Core processes (e.g. skills) to be stopped Note: A command is identified by a line break
Definition at line 48 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureReader.__init__ | ( | self, | |
serial, | |||
bus, | |||
lang = None |
|||
) |
Definition at line 63 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureReader.on_stop_handled | ( | self, | |
event | |||
) |
Definition at line 90 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureReader.process | ( | self, | |
data | |||
) |
Definition at line 94 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureReader.read | ( | self | ) |
Definition at line 75 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureReader.stop | ( | self | ) |
Definition at line 203 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureReader.alive |
Definition at line 65 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureReader.bus |
Definition at line 68 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureReader.daemon |
Definition at line 66 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureReader.lang |
Definition at line 69 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureReader.serial |
Definition at line 67 of file scripts/mycroft/client/enclosure/mark1/__init__.py.