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

POST
/lefu/wifi/checkForUpdate

Request

Body Params application/json
sn
string 
required
Device serial number
mac
string 
required
MAC address
type
string 
required
Product model
WifiVersion
string 
required
Wi-Fi version number
firmwareVersion
string 
required
Firmware version number
hardwareVersion
string 
required
Model (e.g., S1 (do not use S1 as it is already taken, choose a different value determined by the hardware))
charge
string 
required
Device battery level (in decimal format [e.g., 90%: 0.9])
timezone
integer 
required
Time zone
Example
{
    "sn": "string",
    "mac": "string",
    "type": "string",
    "WifiVersion": "string",
    "firmwareVersion": "string",
    "hardwareVersion": "string",
    "charge": "string",
    "timezone": 0
}

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/checkForUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sn": "string",
    "mac": "string",
    "type": "string",
    "WifiVersion": "string",
    "firmwareVersion": "string",
    "hardwareVersion": "string",
    "charge": "string",
    "timezone": 0
}'

Responses

🟢200OK
application/json
Body
data
object (WifiNewVersion) 
optional
now
integer 
optional
Current timestamp
otaFirmwareVersion
string 
optional
Firmware version number
otaUrl
string 
optional
Firmware update URL
otaWifiUrl
string 
optional
WiFi module update URL
otaWifiVersion
string 
optional
WiFi module version number
version
string 
optional
Version number
code
integer 
optional
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.
Example
{
    "data": {
        "now": 0,
        "otaFirmwareVersion": "",
        "otaUrl": "",
        "otaWifiUrl": "",
        "otaWifiVersion": "",
        "version": ""
    },
    "errorCode": 0,
    "text": ""
}
Previous
Device Configuration Sync
Next
Upload Smart Scale Data
Built with