- 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/register
Request
Body Params application/json
sn
string
required
mac
string
required
type
string
required
WifiVersion
string
required
firmwareVersion
string
required
hardwareVersion
string
required
charge
string
required
timezone
integer
required
Example
{
"WifiVersion": "2.0.0",
"charge": "0.9",
"firmwareVersion": "1.0.0",
"hardwareVersion": "S2",
"mac": "24:6F:28:39:BA:9D",
"otaUrl": "http://example.com/wifi",
"otaWifiUrl": "http://example.com/firmware",
"sn": "S101LF8080100001",
"timezone": 8,
"type": "CF516"
}
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/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"WifiVersion": "2.0.0",
"charge": "0.9",
"firmwareVersion": "1.0.0",
"hardwareVersion": "S2",
"mac": "24:6F:28:39:BA:9D",
"otaUrl": "http://example.com/wifi",
"otaWifiUrl": "http://example.com/firmware",
"sn": "S101LF8080100001",
"timezone": 8,
"type": "CF516"
}'
Responses
🟢200OK
application/json
Body
data
object
optional
nowTime
integer
optional
now
integer
optional
unit
integer
optional
errorCode
integer
optional
text
string
optional
Examples
{
"data": {
"now": 1730369814138,
"unit": 0
},
"errorCode": 0,
"text": "Register success"
}