发布-订阅消息结构

发布服务器使用三层消息结构:

  1. 主题:所有消息固定为 b'simulator_topic'

  2. 操作:消息类型(如 b'task_status', b'chip_update')

  3. 数据:JSON数据载荷