mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 05:35:57 +08:00
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:
@@ -427,6 +427,8 @@ func (d *Device) onMessage(req *sip.Request, tx sip.ServerTransaction, msg *gb28
|
|||||||
d.Info("Broadcast message", "body", req.Body())
|
d.Info("Broadcast message", "body", req.Body())
|
||||||
case "DeviceControl":
|
case "DeviceControl":
|
||||||
d.Info("DeviceControl message", "body", req.Body())
|
d.Info("DeviceControl message", "body", req.Body())
|
||||||
|
case "DataTransfer":
|
||||||
|
/*todo*/
|
||||||
default:
|
default:
|
||||||
d.Warn("Not supported CmdType", "CmdType", msg.CmdType, "body", req.Body())
|
d.Warn("Not supported CmdType", "CmdType", msg.CmdType, "body", req.Body())
|
||||||
err = tx.Respond(sip.NewResponseFromRequest(req, http.StatusBadRequest, "", nil))
|
err = tx.Respond(sip.NewResponseFromRequest(req, http.StatusBadRequest, "", nil))
|
||||||
|
Reference in New Issue
Block a user