2018-06-11 21:07:54 +02:00
|
|
|
from platypush.backend.sensor import SensorBackend
|
|
|
|
|
|
|
|
|
|
|
|
class SensorSerialBackend(SensorBackend):
|
2018-06-26 00:36:01 +02:00
|
|
|
"""
|
|
|
|
This backend listens for new events from sensors connected through a serial
|
|
|
|
interface (like Arduino) acting as a wrapper for the ``serial`` plugin.
|
|
|
|
|
|
|
|
Requires:
|
|
|
|
|
|
|
|
* The :mod:`platypush.plugins.serial` plugin configured
|
|
|
|
"""
|
|
|
|
|
2019-08-14 19:49:19 +02:00
|
|
|
def __init__(self, **kwargs):
|
2019-08-14 20:03:34 +02:00
|
|
|
super().__init__(plugin='serial', **kwargs)
|
2018-06-11 21:07:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|