英文:
Send request to Devices using Netty
问题
什么是在一定间隔内持续向多个物联网设备发送请求并使用Netty获取响应的最佳方法。
英文:
What's the best approach to continuously and within a certain interval send request and get response to several IoT Devices using Netty.
答案1
得分: 0
Netty的IdleStateHandler会在通道(channel)一段时间内没有读取或写入数据时,安排发送IdleStateEvents。对你来说,这应该是一个很好的起点。链接:https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java
英文:
Netty's IdleStateHandler schedules IdleStateEvents to be sent when a channel hasn't read or written data in a while. Should be a good starting point for you https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论