重庆江津做网站,软件开发管理工具,池州网站建设全包,中国建设银行新余分行网站嗨#xff0c;我目前正在制作自己的软件来控制一个带有Raspberry Pi的机器人。我想知道是否可以将ssh嵌入到HTML代码中#xff0c;因此当用户输入Pi的IP地址时#xff0c;它将通过ssh连接到pi。在网站中使用SSH然后我想要做的是通过ssh发送命令#xff0c;当他们点击一个按…嗨我目前正在制作自己的软件来控制一个带有Raspberry Pi的机器人。我想知道是否可以将ssh嵌入到HTML代码中因此当用户输入Pi的IP地址时它将通过ssh连接到pi。在网站中使用SSH然后我想要做的是通过ssh发送命令当他们点击一个按钮。例如。向后。这意味着我可以通过python代码控制从树莓派的GPIO引脚如果我可以通过数据。我已经写了一些控制代码的介绍如下#commands{text-align: center;color: FF8300;font-size: 100px;}.controllbox{width: 610px;margin: 0 auto;}#arrowUp{text-align: center;position: static;}#arrowRight{text-align: right;position: static;margin-top: 0;}#arrowDown{text-align: center;position: static;}#arrowLeft{text-align: left;position: static;margin-top: -200px;}#stop{width: 120px;height: auto;margin: 0 auto;margin-top: -65%;margin-left: 34%;text-align: center;position: static;}Controll Me!! document.getElementById(button1).onclick function(){document.getElementById(commands).innerHTML Foward}document.getElementById(button2).onclick function(){document.getElementById(commands).innerHTML Right}document.getElementById(button3).onclick function(){document.getElementById(commands).innerHTML Left}document.getElementById(button4).onclick function(){document.getElementById(commands).innerHTML Backwards}document.getElementById(button5).onclick function(){document.getElementById(commands).innerHTML Stop}它将如果你知道如何做到这一点还是因为我拉我的头发类似的东西将不胜感激试图找出我如何做到这一点。非常感谢您的帮助 James。1https://en.wikipedia.org/wiki/Web-执行它based_SSH –0https://github.com/aluzzardi/wssh –0甚至https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hlen –