fix:更新注释等
This commit is contained in:
@@ -44,13 +44,13 @@ local function handleCmd01(subCmd, payload)
|
||||
local socketId = subCmd
|
||||
if socketId < 1 or socketId > 6 then
|
||||
log.error("Invalid socket id in cmd 0x01:", socketId)
|
||||
sendResponse(0x01, socketId, 1)
|
||||
sendResponse(0x03, socketId, 1)
|
||||
return
|
||||
end
|
||||
local success = linksocket.sendToSocket(socketId, payload)
|
||||
if not success then
|
||||
log.warn("Send failed, socket", socketId, "not connected")
|
||||
sendResponse(0x01, socketId, 1)
|
||||
sendResponse(0x03, socketId, 1)
|
||||
else
|
||||
log.info("Data sent to socket", socketId, "len=", #payload)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user