Module laufen als Thread
*Thread für swich implementiert *Thread für API implementiert (noch nicht lauffähig) *Swich startet CANFilter
This commit is contained in:
parent
704e02385f
commit
f0686090ec
5 changed files with 120 additions and 107 deletions
39
scr/ems.py
39
scr/ems.py
|
|
@ -2,11 +2,38 @@
|
|||
Created on 15.11.2013
|
||||
|
||||
@author: Philipp Rauch
|
||||
@version: 0.01
|
||||
@version: 0.02
|
||||
'''
|
||||
import threading
|
||||
import Queue
|
||||
import swich
|
||||
from API import Buffer as buf
|
||||
|
||||
foo = swich.Swich(swich.MYSQL)
|
||||
#from threading import Thread
|
||||
#from Queue import Queue
|
||||
from swich import Swich, MYSQL
|
||||
from API import Buffer, API
|
||||
from CANFilter import CANFilter
|
||||
|
||||
def startAPI(): #does not work currently
|
||||
app = API()
|
||||
app.start()
|
||||
pass
|
||||
|
||||
def startCANFilter():
|
||||
can = CANFilter()
|
||||
can.start()
|
||||
pass
|
||||
|
||||
def startSwich():
|
||||
swich = Swich(MYSQL)
|
||||
queue, can = swich.initialisiere()
|
||||
print 'EMS:\t', queue
|
||||
swich.start()
|
||||
pass
|
||||
|
||||
def writeToBuffer():
|
||||
#TODO
|
||||
pass
|
||||
|
||||
startSwich()
|
||||
|
||||
#buf = Buffer()
|
||||
#print 'ems ', buf
|
||||
#startAPI()
|
||||
Loading…
Add table
Add a link
Reference in a new issue