Compare commits
1 Commits
dev
...
d65bf84a60
| Author | SHA1 | Date | |
|---|---|---|---|
| d65bf84a60 |
@@ -10,7 +10,7 @@ type Edge5iiModbusMetric = {
|
||||
timestamp: string
|
||||
tag: string
|
||||
value: number
|
||||
};
|
||||
}
|
||||
|
||||
function toFloatCDAB(reg0: number, reg1: number): number {
|
||||
const buf = Buffer.allocUnsafe(4)
|
||||
@@ -64,6 +64,5 @@ export const handle: TopicHandler = async (topic, payload) => {
|
||||
|
||||
const values = parseValues(payload)
|
||||
const metrics = toMetrics(values, new Date().toISOString())
|
||||
log(`${EDGE}.modbus.prepared ${JSON.stringify(metrics)}`)
|
||||
await postMetrics(metrics)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user