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
  1. Interaction Interfaces Between Torre Devices and the Server

Device Configuration Sync

POST
/lefu/wifi/torre/config

Request

Body Params application/json
sn
string 
required
Device SN number
type
string 
required
Product model
mac
string 
required
MAC address
Match pattern:
([A-Fa-f0-9]{2}[:]){5}[A-Fa-f0-9]{2}
bleVersion
string 
required
BLE firmware version number
resVersion
string 
required
RES firmware version number
mcuVersion
string 
required
MCU firmware version number
wifiVersion
string 
required
WiFi firmware version number
Example
{
    "bleVersion": "0.0.9",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "0.1.0",
    "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/config' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bleVersion": "0.0.9",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "0.1.0",
    "sn": "CFE8050813BA",
    "type": "LEFU-CF577",
    "wifiVersion": "0.0.8"
}'

Responses

🟢200Success
application/json
Body
data
object 
optional
nowTime
integer 
optional
now
integer 
optional
unit
integer 
optional
errorCode
integer 
optional
o=success,1=fail
text
string 
optional
The firmware on the device has been successfully written; this parameter is for compatibility with existing devices.
Examples
{
    "data": {
        "nowTime": 1730888100229,
        "now": 1730888100229,
        "unit": 1
    },
    "errorCode": 0,
    "text": "Get config info success"
}
Previous
Device Registration and Network Configuration
Next
Get Update Firmware Version Information
Built with