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)
|
2016-12-30 20:48:43 -05:00
|
|
|
|
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)
|