mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
make decoder classes <<static>>
This commit is contained in:
parent
a6542f0b63
commit
f1bf468c2a
6 changed files with 60 additions and 69 deletions
|
|
@ -45,7 +45,7 @@ try:
|
|||
logging.debug("Import BOSWatch modules")
|
||||
from boswatch.config import Config
|
||||
from boswatch.network.client import TCPClient
|
||||
from boswatch.decoder import decoder
|
||||
from boswatch.decoder.decoder import Decoder
|
||||
from boswatch.utils import header
|
||||
except Exception as e: # pragma: no cover
|
||||
logging.exception("cannot import modules")
|
||||
|
|
@ -84,7 +84,7 @@ try:
|
|||
print("Alarm Nr #" + str(i))
|
||||
|
||||
data = "ZVEI1: 12345"
|
||||
bwPacket = decoder.decode(data)
|
||||
bwPacket = Decoder.decode(data)
|
||||
|
||||
if bwPacket:
|
||||
bwPacket.printInfo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue