Connect to BLE device

后端 未结 3 888
遇见更好的自我
遇见更好的自我 2020-12-21 12:22

So I\'ve made this app, where I find all BLE Devices with a name. But how can I make one of the specific fields, clickable and automatic connect to the device, so I can star

3条回答
  •  遥遥无期
    2020-12-21 12:55

    You can add a view to your holder and set a click listener to it. A view could be a transparent rectangle all around your display card (or whatever you use).

    I'd suggest this in depth read regarding BLE usage. On the click listener you can queue up the connection request.

提交回复
热议问题