随手精灵小程序,单独为了获取WIFI信息加强围栏告警功能能力
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--pages/selble/selble.wxml-->
  2. <view class="command">
  3. <view class="device-item">
  4. <view>连接状态:</view>
  5. <view>{{devLink?'已连接':'未连接'}}</view>
  6. </view>
  7. <view class="device-item">
  8. <view>设备名:</view>
  9. <view>{{selmac.name}}</view>
  10. </view>
  11. <view class="device-item">
  12. <view>设备mac:</view>
  13. <view>{{selmac.deviceId}}</view>
  14. </view>
  15. <view class="device-item">
  16. <view>发送内容:</view>
  17. <view>{{sendData || '暂无指令'}}</view>
  18. </view>
  19. <view class="command-result">
  20. <view>返回结果:</view>
  21. <view>{{callBack || '暂无结果'}}</view>
  22. </view>
  23. </view>
  24. <view style="width:100vw;height:3vw"></view>
  25. <view class="event-bar">
  26. <view class="btn-con">
  27. <button type="default" bindtap="connect">重新连接</button>
  28. <!-- <button type="default" bindtap="startwrite">发送指令</button> -->
  29. <button type="default" wx:for="{{sendBtnList}}" wx:key="lkeys" bindtap="sendMessage" data-command="{{item}}">{{item.name}}</button>
  30. </view>
  31. <view class="command-input">
  32. <textarea bindblur="bindTextAreaBlur" auto-height
  33. placeholder="请输入十六进制的数据格式,例如:FE0007010100FF" />
  34. <button type="primary" bindtap="onInputSend">手动输入发送</button>
  35. <button type="primary" bindtap="onClearInput" >清空输出内容</button>
  36. </view>
  37. </view>