ProfileGeneric parser working, TODO complete ProfileGenericObject + Test
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
from dsmr_parser.parsers import ValueParser, MBusParser
|
||||
from dsmr_parser.parsers import ValueParser
|
||||
from dsmr_parser.value_types import timestamp
|
||||
|
||||
FAILURE_EVENT = r'0-0\:96\.7\.19'
|
||||
PG_FAILURE_EVENT = r'0-0:96.7.19'
|
||||
|
||||
V4 = {
|
||||
'objects': {
|
||||
FAILURE_EVENT: MBusParser(
|
||||
ValueParser(timestamp),
|
||||
ValueParser(int)
|
||||
)
|
||||
PG_HEAD_PARSERS = [ValueParser(int), ValueParser(str)]
|
||||
PG_UNIDENTIFIED_BUFFERTYPE_PARSERS = [ValueParser(str), ValueParser(str)]
|
||||
BUFFER_TYPES = {
|
||||
PG_FAILURE_EVENT: [ValueParser(timestamp), ValueParser(int)]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user