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 Registration and Network Configuration

POST
/lefu/wifi/torre/register

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
hardwareVersion
string 
required
Hardware version number
skuCode
string 
required
SKU code
wifiSsid
string 
optional
WiFi SSID
wifiPassword
string 
optional
WiFi password
Example
{
    "bleVersion": "0.0.9",
    "hardwareVersion": "V1.5",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "0.1.0",
    "skuCode": "CN",
    "sn": "CFE8050813BA",
    "type": "LEFU-CF577",
    "wifiPassword": "12345678",
    "wifiSsid": "IT52",
    "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/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bleVersion": "0.0.9",
    "hardwareVersion": "V1.5",
    "mac": "CF:E8:05:08:13:BA",
    "mcuVersion": "1.2.6",
    "resVersion": "0.1.0",
    "skuCode": "CN",
    "sn": "CFE8050813BA",
    "type": "LEFU-CF577",
    "wifiPassword": "12345678",
    "wifiSsid": "IT52",
    "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": 1730888099983,
        "unit": 0
    },
    "errorCode": 0,
    "text": "Register success"
}
Previous
Get Update Firmware Version Information-v2.0
Next
Device Configuration Sync
Built with