|
我在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);
}
}
如何才能发送字节数组呢? |
|