Skip to content

Commit

Permalink
fix apiUnsetCb
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu authored Feb 18, 2024
1 parent a76166f commit b3bbf5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LuaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ apiSetCb("mqtt",function (data)
end)
```

### apiUnetCb(channel,callback)
### apiUnsetCb(channel,callback)

取消某个通道的订阅

Expand All @@ -94,7 +94,7 @@ local uartCb = function (data)
end
apiSetCb("uart",uartCb)
--取消上面的订阅
apiUnetCb("uart",uartCb)
apiUnsetCb("uart",uartCb)
```

### apiSendUartData(string)(旧接口,不推荐,后续将会移除)
Expand Down

0 comments on commit b3bbf5f

Please sign in to comment.