- Interaction Interfaces Between V2.0/V3.0 Devices and the Server
- Interaction Interfaces Between Torre Devices and the Server
Upload Smart Scale Data
POST
/lefu/wifi/record
Request
Body Params application/json
sn
string
required
type
string
required
mac
string
required
Match pattern:
([A-Fa-f0-9]{2}[:]){5}[A-Fa-f0-9]{2}
charge
string
required
weight
string
required
impedance
string
optional
timestamp
string
required
heartRate
integer
optional
firmwareVersion
string
optional
wifiVersion
string
optional
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
text
string
optional
Example
{
"errorCode": 0,
"text": "success"
}