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

插件的连接状态信息 #27

Open
wwj718 opened this issue May 30, 2019 · 8 comments
Open

插件的连接状态信息 #27

wwj718 opened this issue May 30, 2019 · 8 comments

Comments

@wwj718
Copy link
Contributor

wwj718 commented May 30, 2019

利用message报告给Scratch Extension,各个插件在运行之后订阅各自硬件的连接状态。

可以模仿Scratch microbit的消息提醒UI。

@bilikyar
Copy link
Contributor

这个我记得你现在完成了scratch这段开启adapter的插件,放在了eim插件这里。 我也觉得这种消息通讯用microbit 消息提醒比较好。 这块涉及到的前端的socket通讯这一块需要好好的跟进。

@wwj718
Copy link
Contributor Author

wwj718 commented Jun 26, 2019

@bilikyar 这块的核心是设计payload消息体内容,最好独立于eim插件,将UI展示的职责交给网站设计者。

@bilikyar
Copy link
Contributor

bilikyar commented Jun 26, 2019

我也觉得应该是要独立比较好,我可以从你之前设计的消息结构体的层面上做个改进看看。 这里那就又有了一个新的问题,adapter是不是应该开发出独立的server版本?

@wwj718
Copy link
Contributor Author

wwj718 commented Jun 26, 2019

@bilikyar server版本是指类似Link的版本吗,完全没有UI

@bilikyar
Copy link
Contributor

是的,当然可以有个简单任务栏小图标,可以有开启,关闭,重置,服务功能。这样的话,用户体验更好一点,开启adapter就可以不管,全部控制操作在scratch那段控制。

@wwj718
Copy link
Contributor Author

wwj718 commented Jun 26, 2019

赞同这个feature,插件启停完成后,这些使用纯消息全部可以实现,有些特性依赖于同步机制(这部分也已经完成),我明天着手开始构建一些例子。

@wwj718
Copy link
Contributor Author

wwj718 commented Jun 27, 2019

@bilikyar 我已经把CodeLab Adapter的消息结构梳理完,也对Scratch Link的通信细节做了分析,只需我们实现一下类似的消息结构就可以了

https://github.com/Scratch3Lab/codelab_adapter_extensions/wiki/%E6%B6%88%E6%81%AF%E7%BB%93%E6%9E%84

我明天开始写写示例程序

@bilikyar
Copy link
Contributor

是的,只要模拟他们消息体不管是Microbit也好,其他官方硬件都能兼容,而且也可以应用于其他给官方硬件上面,毕竟他们的消息体是精心设计过得,所以不用重复造轮子

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