Get the App
SLTechnology News&Howtos  ›  Development  › 

How to stop searching for nearby Bluetooth peripherals in Mini Program

Shulou Source: shulou.com Published: 2022-06-02 01:26:21 10月04日 Update

This article will introduce you in detail "how to stop searching for nearby Bluetooth peripherals in Mini Program". The content steps are clear and detailed, and the details are handled properly, and the editor updates different knowledge points every day. I hope this article "how to stop searching for nearby Bluetooth peripherals in Mini Program" will give you unexpected gains, please follow the editor's ideas slowly and deeply, the details are as follows Let's go and gain new knowledge.

Stop searching for nearby Bluetooth peripherals. If you have found the Bluetooth device you need and do not need to continue searching, it is recommended to call this interface to stop Bluetooth search.

OBJECT parameter description:

Parameter type required indicates that successFunction returns the status of the native Bluetooth adapter if it is successful. FailFunction No API call failed callback function completeFunction No API call ended callback function (both successful and failed calls will be executed)

Success return parameters:

Parameter type description errMsgString success: ok, error: details

Sample code:

Wx.stopBluetoothDevicesDiscovery ({success: function (res) {console.log (res)}) Mini Program what are the advantages of Mini Program compared with developers, Mini Program is less difficult to develop, can save development and operating costs, and allows developers to quickly develop a Mini Program. And Mini Program can be easily obtained and spread in Wechat, which can meet the basic life applications, in line with life services offline stores and non-rigid needs of low-frequency applications. For users, it can save time cost and mobile phone memory space, and have excellent use experience at the same time.

Thank you for reading this. I hope you have the most profound experience from the practical level on the key issue of "how to stop searching for nearby Bluetooth peripherals in Mini Program". The specific use of the situation also requires everyone to practice and use in order to understand, if you want to read more related articles, welcome to follow the industry information channel!

Tags: Programs Bluetooth devices development parameters success content interfaces functions developers costs types practices applications search life differences excellence convenience appropriateness Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Microsoft macOS Shulou Technology