@@ -529,6 +529,13 @@ Page({
self.getResultType(util.ab2hex(res.value));
})
},
+ getCharCodeat: function (str) {
+ var list = [];
+ for (var i = 0; i < str.length; i++) {
+ list.push(str.charCodeAt(i));
+ }
+ return list;
+ },
// 设备数据开始写入
writeDevice: function (deviceId, serviceId, characteristicId, data) {
//console.log("===== writeDevice =====");