我按照文档写,总是获取不到plus.bluetooth里面的方法,全都是undefined
 function onPlusReady() {  
                console.log('--- plus ready');  
                console.log('++++ ' + plus.bluetooth);  
            }  
            // 打开蓝牙模块  
            function openBluetoothAdapter() {  
                plus.bluetooth.openBluetoothAdapter({  
                    success: function(e) {  
                        console.log('open success: ' + JSON.stringify(e));  
                    },  
                    fail: function(e) {  
                        console.log('open failed: ' + JSON.stringify(e));  
                    }  
                });  
            }  
            function closeBluetooth() {  
                plus.bluetooth.closeBluetoothAdapter();  
            }                                
            
            
            

            
l***@163.com
只能用HbuilderX打包才能用吗,我离线打包怎么使用bluetooth
2019-03-11 14:47
l***@163.com
Hbuilder打包不能调用吗,忘回复一下,谢谢
2019-03-11 14:49