data/edge5/modbus/v1 to demo refactoring

This commit is contained in:
2026-07-01 13:34:28 +05:00
parent ac4e0d68c3
commit 16c1712752
5 changed files with 20 additions and 24 deletions

View File

@@ -2,9 +2,8 @@ import { postCloudIngest } from '../cloud-ingest.js'
import { createMetricMapper, type MappedMetric } from '../mapping.js'
import type { TopicHandler } from '../types.js'
export const TOPIC = 'data/edge5/modbus/v2'
const REGISTER_COUNT = 125
const mapper = createMetricMapper({
filePath: process.env.EDGE5_MODBUS_V2_MAPPING_FILE as string,
})