WiFi scale server
  1. Interaction Interfaces Between Torre Devices and the Server
WiFi scale server
  • Interaction Interfaces Between V2.0/V3.0 Devices and the Server
    • Device Registration and Network Configuration
      POST
    • Device Configuration Sync
      GET
    • Get Update Firmware Version Information
      POST
    • Upload Smart Scale Data
      POST
    • Batch Upload Smart Scale Data
      POST
    • Get Update Firmware Version Information-v2.0
      POST
  • Interaction Interfaces Between Torre Devices and the Server
    • Device Registration and Network Configuration
      POST
    • Device Configuration Sync
      POST
    • Get Update Firmware Version Information
      POST
    • Upload Smart Scale Data
      POST
  • 4G设备与服务器之间的交互接口
    • 设备配置同步
      POST
    • 上传智能秤数据
      POST
  1. Interaction Interfaces Between Torre Devices and the Server

Get Update Firmware Version Information

POST
/lefu/wifi/torre/checkForUpdate

Request

Body Params application/json

Example
{
    "bat": "0.30",
    "bleVersion": "0.0.9",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "1.0.2",
    "sn": "CFE8050813BA",
    "type": "LEFU-CF577",
    "wifiVersion": "0.0.8"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/lefu/wifi/torre/checkForUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bat": "0.30",
    "bleVersion": "0.0.9",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "1.0.2",
    "sn": "CFE8050813BA",
    "type": "LEFU-CF577",
    "wifiVersion": "0.0.8"
}'

Responses

🟢200Success
application/json
Body

Examples
{
    "data": [
        {
            "id": 328,
            "type": "CF568_G",
            "productComponent": "BLE",
            "crc": "60044",
            "url": "https://fire-versions.oss-cn-shenzhen.aliyuncs.com/test/ota1712984387626/CF568_Generic_BLE_OTA.bin",
            "size": "451564",
            "version": "999",
            "createTime": "2024-04-13 12:59:54",
            "nowTime": 1734337962421,
            "whitelist": null
        },
        {
            "id": 139,
            "type": "CF568_G",
            "productComponent": "MCU",
            "crc": "28411",
            "url": "https://fire-versions.oss-cn-shenzhen.aliyuncs.com/test/ota1689430028198/CF568_MCU_OTA.bin",
            "size": "32768",
            "version": "999",
            "createTime": "2023-09-08 08:59:13",
            "nowTime": 1734337962421,
            "whitelist": null
        },
        {
            "id": 116,
            "type": "CF568_G",
            "productComponent": "WIFI",
            "crc": "59594",
            "url": "https://fire-versions.oss-cn-shenzhen.aliyuncs.com/test/ota1687960338189/CF568_WIFI_OTA_V117.bin",
            "size": "652960",
            "version": "999",
            "createTime": "2023-09-08 08:59:13",
            "nowTime": 1734337962421,
            "whitelist": null
        },
        {
            "id": 115,
            "type": "CF568_G",
            "productComponent": "RES",
            "crc": "31218",
            "url": "https://fire-versions.oss-cn-shenzhen.aliyuncs.com/test/ota1687960316076/CF568_Generic_RES_OTA_V40.bin",
            "size": "3770074",
            "version": "999",
            "createTime": "2023-09-08 08:59:13",
            "nowTime": 1734337962421,
            "whitelist": null
        }
    ],
    "errorCode": 0,
    "text": "checkForUpdate success"
}
Previous
Device Configuration Sync
Next
Upload Smart Scale Data
Built with