feat: Some devices, such as DJI, send the command 'DataTransfer', but this command is useless (#336)

Co-authored-by: yjx <yjx>
This commit is contained in:
yangjinxing123
2025-09-16 14:24:25 +08:00
committed by GitHub
parent 825328118a
commit b1cb41a1b2

View File

@@ -427,6 +427,8 @@ func (d *Device) onMessage(req *sip.Request, tx sip.ServerTransaction, msg *gb28
d.Info("Broadcast message", "body", req.Body())
case "DeviceControl":
d.Info("DeviceControl message", "body", req.Body())
case "DataTransfer":
/*todo*/
default:
d.Warn("Not supported CmdType", "CmdType", msg.CmdType, "body", req.Body())
err = tx.Respond(sip.NewResponseFromRequest(req, http.StatusBadRequest, "", nil))