mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-26 23:05:55 +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())
|
||||
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))
|
||||
|
Reference in New Issue
Block a user