set adc shl rtl8195am

This commit is contained in:
pvvx 2018-03-04 18:23:47 +03:00
parent 2bc9cc61b3
commit 8529849a5a
4 changed files with 187 additions and 10 deletions

View file

@ -20,7 +20,7 @@ var rdnextflg = false;
var cur_idx = 0;
ws = new WebSocket('ws://rtl871x0/web.cgi');
ws.binaryType = 'arraybuffer';
ws.onopen = function(){ws.send('adc');ws.send('adc')};
ws.onopen = function(){ws.send('adc*');ws.send('adc*')};
ws.onmessage = function (event) {
if(event.data instanceof ArrayBuffer) {
var wordarray = new Uint16Array(event.data);