- Interaction Interfaces Between V2.0/V3.0 Devices and the Server
- Interaction Interfaces Between Torre Devices and the Server
Device Configuration Sync
POST
/lefu/wifi/torre/config
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}
bleVersion
string
required
resVersion
string
required
mcuVersion
string
required
wifiVersion
string
required
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
text
string
optional
Examples
{
"data": {
"nowTime": 1730888100229,
"now": 1730888100229,
"unit": 1
},
"errorCode": 0,
"text": "Get config info success"
}