- Interaction Interfaces Between V2.0/V3.0 Devices and the Server
- 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
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
hardwareVersion
string
required
skuCode
string
required
wifiSsid
string
optional
wifiPassword
string
optional
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
text
string
optional
Examples
{
"data": {
"nowTime": 1730888099983,
"unit": 0
},
"errorCode": 0,
"text": "Register success"
}