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

PostDelay问题 #168

Open
Ethan-0726 opened this issue Dec 5, 2023 · 1 comment
Open

PostDelay问题 #168

Ethan-0726 opened this issue Dec 5, 2023 · 1 comment

Comments

@Ethan-0726
Copy link

我的数据源是串口数据, 频率大概是1秒5包数据, 拿到数据后通过postDelay发送出去, 设置了延迟是5000, 本意是想的, 外面只需要更新数据, 用不了频率这么高的, 所以就想到了这个延迟发送的办法, 但实际效果是 在第一次延迟了5秒后, 剩下的消息都是按照1秒5次来执行的

@michaellee123
Copy link

你这玩意儿属于小学逻辑思维有问题吧,你最初的数据每一包之间间隔200ms,你每一包都是延迟发送的,那外面收到的时候间隔不也是200ms不会变呀

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