feat: add CORS support and enhance session routes for better sensor management
This commit is contained in:
@@ -103,7 +103,7 @@ function handleSensorConnection(ws) {
|
||||
ws.on('message', (data) => {
|
||||
try {
|
||||
const packet = decode(data);
|
||||
const { ts, ...fields } = packet;
|
||||
const { ts, _m, ...fields } = packet;
|
||||
|
||||
writeSensorData(fields, sensorName, sessionId, ts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user