These demos work thanks to the Net4Machines Websocket-TCP gateway and a GopherJS wrapper of the Golang obbus client
If you cant connect to the GSR, please check your adblock is not blocking the javascript nor the websocket connection to the gateway
This demo will let you connect with the serial port of the GSR, read and write data to it. (The current serial port configuration will not be modified)
<iframe width="100%" height="600" src="//jsfiddle.net/jbreva/bqso57xa/embedded/result,html,js,css/dark/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>Most of the code in this demo is the Vue.js boilerplate for the buttons and text fields, but the only obbus logic is:
this.bus.subscribe("serial.recv", function(msg, err) {
console.log("recv:", msg)
...
}
this.bus.ps("serial.cmd.write", this.sendmsginput, "")