- 蓝牙wx.writeBLECharacteristicValue能发送gb2312指令给单片机?
const val = gb.encodeToGb2312('测试') const num = that.data.value console.log(val); var buffer = util.stringToBytes('+$CCTXA,' + num + ',1,2,A4' + val + '*7C\n'); console.log(buffer); wx.writeBLECharacteristicValue({ deviceId: app.globalData.deviceId, serviceId: app.globalData.serviceId, characteristicId: '0000FFE2-0000-1000-8000-00805F9B34FB', value: buffer, success: function () {}, })
2022-09-16 - 提交审核 提示系统繁忙?
[图片]
2020-05-18 - 小程序map组件中的include-points属性使用过后就不能够点击按钮回到当前位置吗?
[图片] <view class="top"> <!-- <image class="back" bindtap="back1" src="../../images/back.png"></image> --> <view class="search-box"> <view class="region" bindtap="keyword_v">我的位置</view> <view class="shu"></view> <input bindinput="getsuggest" placeholder="{{startpoint_show}}" value="{{startpoint_show}}"></input> <!-- <view >{{startpoint_show}}</view> --> </view> </view> <!-- show-location scale="14" --> <map id="map" class="navi_map" longitude="{{longitude}}" markers="{{markers}}" latitude="{{latitude}}" include-points='{{points}}' polygons="{{polyline}}" bindregionchange="regionchange" scale="{{scale}}" show-location bindcontroltap="controltap"> <cover-view class="cover-view"> <cover-view class="container"> <cover-view class="flex-wrp" style="flex-direction:row;"> <cover-image class="flex-item demo-text-1" src="../../images/dingwei.png" bindtouchstart="keyword_v"></cover-image> </cover-view> </cover-view> </cover-view> </map> <!--关键词输入提示列表渲染--> <view class="add-list-box" wx:if="{{add}}"> <scroll-view class="near-list"> <view bindtouchstart="chooseCenter" data-keywords="{{i.name}}" data-location="{{i.location}}" class="add-item " wx:for="{{tips}}" wx:for-item="i">{{ i.name }} <text class="add">{{i.district}}</text> </view> </scroll-view> <view class="bottom-box"> <button bindtap="selectedOk">确认地址</button> </view> </view>
2020-01-21