Android设备作为主机的Shell脚本,并将CMD/消息/广播发送到服务器
对于ADB Shell脚本,我可以将Android设备用作主机,并通过WiFi连接将一些消息/CMD/广播发送到我的Linux服务器吗?最简单的方法是更好。该消息仅包括4个文本“ 0000”,“ 0001”,“ 0010”等。因为当服务器接收此消息/CMD/广播时,服务器需要将腔室设置更改为正确的设置。但是我只能使用Shell脚本在Android设备上执行此任务。不允许Python脚本。有没有建议此任务?
谢谢。
For adb shell script, can I use the Android device as the host and send some message/cmd/broadcast to my linux server through the wifi connection? The simplest way is better. The message only includes 4bits text "0000","0001","0010", etc,. Because when the server receives this message/cmd/broadcast, server needs to change the chamber setting to the correct one. But I can only use shell script to perform this task on android device. Python script is not allowed. Is there any recommendation for this task?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢Gabe Sechan给我一个好主意,可以在网页上记录信息。我的Linux可以监视网页并控制实验室中的腔室。
Thanks Gabe Sechan give me a good idea to log the information on the web page. My Linux could monitor the web page and control the chamber in the laboratory.