WiFi scale server
  1. Interaction Interfaces Between V2.0/V3.0 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
  1. Interaction Interfaces Between V2.0/V3.0 Devices and the Server

Get Update Firmware Version Information-v2.0

POST
/lefu/wifi/v2/checkForUpdate

Request

Body Params application/json
sn
string 
required
Device serial number
type
string 
required
Product model
mac
string 
required
MAC address
Match pattern:
([A-Fa-f0-9]{2}[:]){5}[A-Fa-f0-9]{2}
bat
string 
required
Device battery level
bleVersion
string 
required
Ble firmware version number
resVersion
string 
required
Res firmware version number
mcuVersion
string 
required
Mcu firmware version number
wifiVersion
string 
required
Wi-Fi firmware version number
Example
{
    "bat": "35",
    "bleVersion": "1.0.1",
    "mac": "CF:E5:01:01:00:02",
    "mcuVersion": "1.0.1",
    "resVersion": "1.0.1",
    "sn": "lf11112",
    "type": "CF577",
    "wifiVersion": "1.0.1"
}

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/v2/checkForUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bat": "35",
    "bleVersion": "1.0.1",
    "mac": "CF:E5:01:01:00:02",
    "mcuVersion": "1.0.1",
    "resVersion": "1.0.1",
    "sn": "lf11112",
    "type": "CF577",
    "wifiVersion": "1.0.1"
}'

Responses

🟢200OK
application/json
Body
data
array[object (TorreVersionUrl) {7}] 
optional
type
string 
optional
Product Signal
productComponent
string 
optional
Component Type
crc
string 
optional
CRC,Reference document for calculation methods《Other tools》
url
string 
optional
Firmware Package URL
size
string 
optional
Firmware Package Size
version
string 
optional
Version Number
nowTime
integer <int64>
optional
Current Timestamp (ms)
errorCode
integer 
optional
The firmware on the device has been successfully written; this parameter is for compatibility with existing devices.
text
string 
optional
The firmware on the device has been successfully written; this parameter is for compatibility with existing devices.
Examples
{
    "data": [
        {
            "type": "CF576",
            "productComponent": "BLE",
            "crc": "37586",
            "url": "https://CF577_Generic_V149_20240508.bin",
            "size": "403324",
            "version": "9.4.9",
            "nowTime": 1730369920264
        }
    ],
    "errorCode": 0,
    "text": "checkForUpdate success"
}
Previous
Batch Upload Smart Scale Data
Next
Device Registration and Network Configuration
Built with