mobile CCTV,mobile surveillance,police body worn cameras
标题:
web端TSP发送字节数组
[打印本页]
author:
antoke
time:
2017-8-8 11:04
标题:
web端TSP发送字节数组
我在js上实现了TSP打开和发送,但是,TSP发送智能发送ASCII数据
function testWriteTSP() {
if (!session) {
return;
}
var chanel = session.swGetPuChanel(puid, 65792);
if (chanel) {
chanel.swWrite({
callback: function (options, response) {
console.info('write tsp data: ' + response.emms.code);
},
data: "Hello World",
});
} else {
alert('un found pu: ' + puid);
}
}
如何才能发送字节数组呢?
author:
IBeli
time:
2017-8-8 14:28
目前只能发ASCII数据 会在下个版本里添加对发送字节数组(Uint8Array)的支持, 还是用这个接口,发送字节数组只要data填Uint8Array就行了
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2