1
0
Fork 0
trespassed/software/main.py

19 lines
540 B
Python
Raw Normal View History

2017-01-13 16:01:29 -05:00
"""Main endpoint for trespassed application."""
2016-12-21 12:44:40 -05:00
from trespassed.serial import SerialService, watchdog_service
2017-01-11 12:08:12 -05:00
from trespassed.status import status_service
from trespassed.web import WebService
2016-12-21 12:44:40 -05:00
2017-01-13 16:01:29 -05:00
from twisted.application.service import Application
2016-12-21 12:44:40 -05:00
application = Application("Trespassed")
2017-01-11 12:08:12 -05:00
2016-12-21 12:44:40 -05:00
serial_service = SerialService()
serial_service.setServiceParent(application)
2017-01-11 12:08:12 -05:00
web_service = WebService("tcp:8000")
web_service.setServiceParent(application)
watchdog_service.setServiceParent(application)
status_service.setServiceParent(application)