Commit Graph

19 Commits

Author SHA1 Message Date
caoqianming 68e724898c feat(event): add business control events (fault, comm, auto, state change) 2026-03-24 14:46:25 +08:00
caoqianming c50127b9d0 feat(event): stream created events over websocket 2026-03-24 12:28:12 +08:00
caoqianming 97d2f6ebf8 feat(control): add manual equipment pulse commands 2026-03-24 11:16:50 +08:00
caoqianming 4e3d325437 feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
caoqianming 503aefc4cb refactor(event): rename ReloadEvent to AppEvent and split event channels
Clarify event semantics by renaming ReloadEvent to AppEvent and route control vs telemetry traffic through dedicated channels. This keeps control events isolated from high-frequency PointNewValue updates while preserving the existing send() call pattern.

Made-with: Cursor
2026-03-13 14:44:30 +08:00
caoqianming 5fa63ad6dd fix(opcua): stabilize reconnect loop and coalesce telemetry events
Always clear reconnect-in-progress markers after reconnect attempts so heartbeat-triggered retries are not blocked. Reduce high-frequency event overhead by coalescing consecutive point updates in the event worker and processing only the latest value per source/client handle.

Made-with: Cursor
2026-03-13 14:26:50 +08:00
caoqianming 5406568969 fix: harden event handling and source safety
Improve runtime resilience by bounding the reload event queue and processing telemetry updates without per-point spawned tasks. Also reduce security risk by sanitizing source responses, avoiding internal error detail leaks, and standardizing write-key configuration with backward compatibility.

Made-with: Cursor
2026-03-13 14:22:16 +08:00
caoqianming efed6aa816 feat: add page 2026-03-11 13:23:05 +08:00
caoqianming 8e4abd0af9 feat: 添加重连保护机制修复重复重连问题 2026-03-06 09:01:15 +08:00
caoqianming aaf887a6fc 优化PointNewValue事件处理:并行执行update_point_monitor_data和send_to_public,移除不必要的ws_manager_clone 2026-03-05 15:28:04 +08:00
caoqianming 114d350e5b refactor: 移除 ReloadEvent::PointCreate,统一使用 PointCreateBatch 2026-03-05 09:31:52 +08:00
caoqianming 1ddb707a9b 优化 WebSocket 消息发送:移除不必要的 clone,注释掉 send_to_client 2026-03-04 12:35:22 +08:00
caoqianming 173814416f 修复潜在的死锁问题:将读锁的作用域限制在块内,避免在持有读锁时尝试获取写锁 2026-03-04 12:20:13 +08:00
caoqianming 4bb9bdd27d 优化 event.rs 中的克隆操作,减少 monitor 的克隆次数从 3 次减少到 1 次 2026-03-04 08:47:24 +08:00
caoqianming 562a2d566b feat: 为 PointMonitorInfo 添加旧值追踪和值变化检测 2026-03-04 08:35:28 +08:00
caoqianming 8127d04855 refactor: 将 PointValueChange 重命名为 PointNewValue 2026-03-03 16:56:37 +08:00
caoqianming cc7142e556 refactor: 统一使用 PointMonitorInfo,移除 WsPointMonitorInfo 2026-03-03 16:51:18 +08:00
caoqianming a82921193c PointNewValue 2026-03-03 16:44:53 +08:00
caoqianming 44f4a794d3 feat: 软件第一个版本 2026-03-03 13:32:05 +08:00