C2-SFL100 SDK Interface Documentation
C2-SFL100 SDK Interface Documentation
Figure 2
Connect to the software via WebSocket port 1860 to obtain information reported by cuav_proxy.
When no SFL100 device is connected, cuav_proxy no reported information.
By enabling SFL100 to access the cuav_proxy software, you can obtain the information and
device status information of the drone reported by SFL100. Figure 4 shows the cuav_proxy
software connected to SFL100 reporting the drone information detected by SFL100.
Figure 3
Figure 4 shows the horizontal rotation operation of the SFL100 device through the HTTP
interface.
Figure 4
4. Interface list:
4.1 Set strike point information
4.1.1 interface description
Set strike parameters
4.1.2 request address
http://Ip:1860/device/sfl/hit-angle
4.1.3 request parameters
Direction Post Request
Request Type Description
sn string SFL100 Device Serial Number
hitAngleBegin int32 Starting angle of strike range
Request hitAngleEnd int32 End of strike angle
parameters hitTime int32 Strike duration, unit seconds
hitPitchBegin int32 Strike starting pitch angle
Return structure
{
"result": {
"code": 0,
"msg": "Success"
},
"data": {
"status": 1
}
}
4.1.5 remarks
Return structure
{
"result": {
"code": 0,
"msg": "Success"
},
"data": {
"status": 1
}
}
4.2.5 remarks
Error Error description
code
-1001 Incorrect request data parameter
-1002 Internal service errors, such as devices not online, response
timeouts caused by poor network quality, etc.
-1003 Internal service error, device returns message error
Return structure
{
"result": {
"code": 0,
"msg": "Success"
},
"data": {
"status": 1
}
}
4.3.5 remarks
Error Error description
code
-1001 Incorrect request data parameter
-1002 Internal service errors, such as devices not online, response
timeouts caused by poor network quality, etc.
-1003 Internal service error, device returns message error
Return structure
{
"result": {
"code": 0,
"msg": "Success"
},
"data": {
"status": 1
}
}
4.4.5 remarks
Error Error description
code
-1001 Incorrect request data parameter
-1002
Internal service errors, such as devices not online, response
timeouts caused by poor network quality, etc.
-1003 Internal service error, device returns message error
Return structure
{
"result": {
"code": 0,
"msg": "Success"
},
"data": {
"status": 1
}
}
4.5.5 remarks
Error Error description
code
-1001 Incorrect request data parameter
-1002 Internal service errors, such as devices not online, response
timeouts caused by poor network quality, etc.
-1003 Internal service error, device returns message error