Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getty可以用来做物联网modbus长连接网关吗,每个连接需要进行定时下发指令到设备 #70

Closed
ZhangChengJi opened this issue Sep 16, 2022 · 6 comments

Comments

@ZhangChengJi
Copy link

No description provided.

@AlexStocks
Copy link
Owner

如果是处理 TCP 协议,应该是可以的。定时任务在 OnCron 里面执行。

@ZhangChengJi
Copy link
Author

OnCron好像不可以,需要每个连接建立自己的定时任务,

@ZhangChengJi
Copy link
Author

我现在是通过时间轮建立定时任务下发的task,然后存储到sync.map

@AlexStocks
Copy link
Owner

OnCron好像不可以,需要每个连接建立自己的定时任务,

OnCron 确实是连接级别的,每个连接单独一个

@AlexStocks
Copy link
Owner

我现在是通过时间轮建立定时任务下发的task,然后存储到sync.map

有解决方法就好

@AlexStocks
Copy link
Owner

你能否来 #40 这里登记下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants