CAPAUT-254 Add datapaser tests

This commit is contained in:
2022-07-28 17:11:53 +02:00
parent db4e309439
commit 110f7a9ad8
6 changed files with 3070 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ const SYSTACOMFORT_VALUES = {
SYSTEM_TEMPERATURE_ROOM_TARGET: { dataPosition: 116, topic: 'system/temperature-room-target/get', description: 'Raumtemperatur (Soll)', unit: '°C', valueDivider: 10 }
}
module.exports = {
const dataParser = {
/**
* Create a two character based mac address segment
* @param {*} segment
@@ -108,4 +108,6 @@ module.exports = {
reply[19] = counterReply >> 8
return reply
}
}
}
module.exports = { dataParser, SYSTACOMFORT_VALUES }