mqtt-ingest draft
This commit is contained in:
13
app/src/handlers/edge5-video.ts
Normal file
13
app/src/handlers/edge5-video.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { onEdgeChunk } from '../stream/edge-chunk-relay.js'
|
||||
import type { TopicHandler } from '../types.js'
|
||||
|
||||
export const TOPIC = 'data/edge5/video/v1'
|
||||
|
||||
export const handleEdge5Video: TopicHandler = async (topic, payload) => {
|
||||
console.log('edge5.video.received', {
|
||||
topic,
|
||||
bytes: payload.length,
|
||||
payload,
|
||||
})
|
||||
onEdgeChunk(payload)
|
||||
}
|
||||
Reference in New Issue
Block a user