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

Upload Smart Scale Data

POST
/lefu/wifi/record

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}
charge
string 
required
Device battery level
weight
string 
required
Weight (Note: unit is unified as KG)
impedance
string 
optional
Encrypted impedance
timestamp
string 
required
Weighing timestamp (milliseconds)
heartRate
integer 
optional
Heart rate
firmwareVersion
string 
optional
Firmware version number
wifiVersion
string 
optional
WiFi firmware version number
Example
{
    "charge": "0.35",
    "firmwareVersion": "1.0.0",
    "heartRate": 75,
    "impedance": "10000",
    "mac": "CF:E7:07:05:D0:32",
    "sn": "lf21FD0001",
    "timestamp": "1599534596000",
    "type": "CF577",
    "weight": "60.5",
    "wifiVersion": ""
}

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/record' \
--header 'Content-Type: application/json' \
--data-raw '{
    "charge": "0.35",
    "firmwareVersion": "1.0.0",
    "heartRate": 75,
    "impedance": "10000",
    "mac": "CF:E7:07:05:D0:32",
    "sn": "lf21FD0001",
    "timestamp": "1599534596000",
    "type": "CF577",
    "weight": "60.5",
    "wifiVersion": ""
}'

Responses

🟢200OK
*/*
Body
code
integer 
optional
errorCode
integer 
optional
The firmware on the device has been written successfully; this parameter is for compatibility with existing devices.
text
string 
optional
The firmware on the device has been written successfully; this parameter is for compatibility with existing devices.
Example
{
    "errorCode": 0,
    "text": "success"
}
Previous
Get Update Firmware Version Information
Next
Batch Upload Smart Scale Data
Built with