APE
    • 快速开始
    • 项目文件
    • 数据推送
    • 版本下载
    • 更新内容
    • REST
      • Auth
        • Get JWT Token
        • Reset Password
        • Refresh JWT Token
      • Service
        • Master
          • Service Status
          • Install Service
          • Uninstall Service
          • Restart Service
      • Configuration
        • Get Master Configuration
        • Set Master Configuration
        • Get Worker Configuration
        • Set Worker Configuration
        • Get Locators Configuration
        • Get Filters Configuration
        • Set Filters Configuration
      • BP
        • Set BP
        • Get BP
        • Delete BP
      • RTLS
        • Positions
        • Userdata
        • Locators
        • Update Positions
        • Report
        • Dashboard
      • Downlink
        • Downlink
    • 数据模型
      • ServiceStatus
      • ConfigurationMaster
      • ConfigurationWorker
      • ConfigurationFilters
      • BP
      • ConfigurationLocator
      • Coord

    数据推送

    推送设置#

    目前我们支持 HTTP 和 MQTT 协议推送定位结果数据。可在 WEB 控制台 http://localhost:8880 中的「推送设置」版块设置推送目标。
    ape.webp

    格式#

    Raw:二进制小端模式
    Json:JSON

    压缩#

    对推送的数据进行压缩处理。
    None:不压缩
    Zstd:用 Zstd 压缩
    Lz4:用 Lz4 压缩
    Gzip:用 Gzip 压缩

    间隔#

    推送时间间隔。

    URI#

    推送地址用标准 URI 表示。示例如下:
    http://192.168.1.100:8080?key=xxx
    https://192.168.1.100:8443?bearer_token=xxx
    mqtt://username:password@192.168.1.100:1883?client_id=client123&topic=/ape/123
    mqtts://username:password@192.168.1.100:1883?client_id=client123&topic=/ape/123
    以 http://192.168.1.100:8080?key=xxx 和 mqtt://192.168.1.100:1883?client_id=client123&topic=/ape/123 为例:
    消息类型HTTP URLMQTT Topic
    定位结果POST http://192.168.1.100:8080/positions?key=xxx/ape/123/positions
    用户数据POST http://192.168.1.100:8080/userdata?key=xxx/ape/123/userdata
    基站更新时间POST http://192.168.1.100:8080/locator-timestamps?key=xxx/ape/123/locator-timestamps

    数据格式#

    定位结果#

    示例#

    [
      {
        "mac": 186916976721921,
        "map": 1,
        "x": 12.34,
        "y": 45.67,
        "z": 2.8,
        "ts": 1785623491000,
        "locator": 204509162766337
      },
      {
        "mac": 186916976721922,
        "map": 1,
        "x": 15.72,
        "y": 42.19,
        "z": 2.8,
        "ts": 1785623493500,
        "locator": 204509162766337
      },
      {
        "mac": 186916976721923,
        "map": 1,
        "x": 8.11,
        "y": 33.45,
        "z": 3.0,
        "ts": 1785623496120,
        "locator": 204509162766337
      }
    ]

    用户数据#

    基站更新时间#

    修改于 2026-07-08 03:21:31
    上一页
    项目文件
    下一页
    版本下载
    Built with