In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to get all the characteristic in a service of Bluetooth device in the development of Mini Program. The content is simple and clear. I hope it can help you solve your doubts. Let me take you to study and learn this article "how to get all the characteristic in a service of Bluetooth device in Mini Program development".
Get all the characteristic (eigenvalues) in a service of a Bluetooth device
OBJECT parameter description:
Parameter type is required to indicate that deviceIdString is the Bluetooth device id. If the reference device object serviceIdString is Bluetooth service uuidsuccessFunction, the local Bluetooth adapter status is returned if the uuidsuccessFunction is successful. If the API calls the failed callback function completeFunction, no callback function will be called (both successful and failed calls will be executed)
Success return parameters:
Parameter type description characteristicsArray device eigenvalue list errMsgString successful: ok, error: details characteristic object
Bluetooth device characteristic (eigenvalue) information
Sample code:
Wx.getBLEDeviceCharacteristics ({/ / the deviceId here needs to have established a link with the corresponding device through createBLEConnection: deviceId: deviceId, / / the serviceId here needs to obtain serviceId: serviceId, success: function (res) {console.log ('device getBLEDeviceCharacteristics:', res.characteristics)}} in the above getBLEDeviceServices API) what is the advantage of Mini Program compared with developers, Mini Program is less difficult to develop and can save development and operating costs So that developers can 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.
The above is about "how to get all the characteristic in a service of Bluetooth device in Mini Program development". If this article is helpful to you and you think it is well written, please share it with your friends to learn new knowledge. If you want to know more about it, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.