Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

远程唤醒功能实现 #22

Closed
numbqq opened this issue Aug 2, 2018 · 5 comments
Closed

远程唤醒功能实现 #22

numbqq opened this issue Aug 2, 2018 · 5 comments

Comments

@numbqq
Copy link

numbqq commented Aug 2, 2018

我想在控制页面增加一个远程唤醒的功能,如WOL(Wake On Lan),但是要实现这个功能需要发送UDP广播,我对前端不是太了解,想请问下有没有什么方式可以实现在控制页面发送UDP广播呢?谢谢!

@numbqq
Copy link
Author

numbqq commented Jan 11, 2019

这个功能我这边已经有一个简单的实现了:
numbqq@4f58837

numbqq@689ebf4

@codeskyblue
Copy link
Contributor

wakeup 应该是keyevent POWER吧

@numbqq
Copy link
Author

numbqq commented Jan 14, 2019

不是的,这个poweroff后整个系统都断电了的,不是休眠状态,只有以太网部分还在上电工作,所有收到WOL的包后以太网的一个中断脚会控制系统电源唤醒。这个只是一个特殊的需求,一般不会用到,像手机等都没有这个的。

@codeskyblue
Copy link
Contributor

刚没怎么仔细看,发现你这个代码写的不错呀

@stale
Copy link

stale bot commented Feb 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 13, 2019
@stale stale bot closed this as completed Feb 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants