腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
找不到
PeripheralManager
类
android
、
android-things
,它会给我以下错误: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/
PeripheralManager
compileOnly 'com.google.android.things:androidthings:+' 我正在尝试使用以下代码访问外设:
PeripheralManager
manager=
PeripheralManager
浏览 95
提问于2019-03-03
得票数 0
2
回答
"com.google.android.things.pio.PeripheralManagerService“:没有找到java.lang.ClassNotFoundException
类
android
、
android-studio
我如何解决这个RunTimeException?当单击按钮时会发生此异常。尝试关闭即时运行,甚至尝试清理和重新启动应用程序,但没有任何效果。这里的实际问题是什么。致命例外: main java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManagerService;
浏览 12
提问于2017-07-14
得票数 1
1
回答
用专用
类
iPhone模拟信标
ios
、
objective-c
、
iphone
、
swift
、
ibeacon
在使用除视图控制器以外的
类
时,也提供了一些问题的信息,至少是在when中。 在最后一个链接中,我找到了用于用iBeacon模拟iPhone的Swift教程的链接--代码放在中,它在这里工作。
浏览 0
提问于2016-12-08
得票数 2
回答已采纳
2
回答
Odroid N2 "getGpioList()“返回空数组,无法访问gpio端口
java
、
android
、
gpio
、
android-things
、
odroid
https://developer.android.com/things/sdk/pio/gpio 现在我的问题是,我的应用程序
找不到
任何gpio端口。下面的代码只返回一个空数组:
PeripheralManager
manager =
PeripheralManager
.getInstance(); List<String> portList = manager.getGpioListandroid:name="com.google.android.thin
浏览 10
提问于2019-12-13
得票数 2
回答已采纳
2
回答
无法从Singleton运行的CoreBluetooth函数
ios
、
swift
、
bluetooth-lowenergy
、
core-bluetooth
现在,我将它移到两个管理器
类
,一个用于CBCentralManager,另一个用于CBPeripheralManager,在这些
类
中,我创建了一个BluetoothManager,它是一个单例
类
,包含有关当前连接的设备的一些信息CentralManager
类
import CoreBluetooth private
类
class
PeripheralManager
: NSObj
浏览 0
提问于2018-08-09
得票数 2
1
回答
iOS设备作为iBeacon,为什么不能工作?
ios
、
swift
、
bluetooth-lowenergy
、
cbperipheral
、
cbperipheralmanager
我正在尝试制作一个iOS应用程序,它使用
PeripheralManager
向中央广播UUID。有东西我忘了吗?var
peripheralManager
: CBPeripheralManager!Kristers Beacon")
浏览 1
提问于2018-04-03
得票数 2
回答已采纳
1
回答
外围设备和中央设备同时位于同一应用程序iOS11上
ios
、
swift
、
bluetooth
func viewDidAppear(_ animated: Bool) {
peripheralManager
// And add it to the peripheral manager
peripheralManager
?.
浏览 19
提问于2018-01-23
得票数 2
回答已采纳
1
回答
为什么我的代表从来没有被叫过?
ios
、
ibeacon
_beaconPeripheralData = [beaconRegion peripheralDataWithMeasuredPower:nil]; //[
peripheralManager
startAdvertising
浏览 1
提问于2017-05-04
得票数 0
回答已采纳
1
回答
如何在CBPeripheralManager中正确添加服务
ios
、
xamarin
、
bluetooth-lowenergy
、
core-bluetooth
我试图使用Visual将服务添加到用于IOS的CBPeripheralManager中。但是,当我使用另一个设备扫描我的外围设备时,我没有看到我添加的服务。广告名称是正确的,但我只看到其他服务(想必是iphone的默认名称)。我的xcode版本是9,我的ios目标版本是11。CBPeripheralManager _peripheral; { _peripheral = new CBPeripheralManager();//this, Dispatch
浏览 3
提问于2017-12-08
得票数 3
回答已采纳
1
回答
self.init()使init(){ }无限地运行
swift
、
xcode
、
macos
、
core-bluetooth
但是,正如标题所示,我有一个
类
正在尝试启动,convenience init方法无限地运行。为什么会这样呢?class Peripheral: CBPeripheralManager, CBPeripheralManagerDelegate var
peripheralManager
: CBPeripheralManager{ self.init()
peripheralManager
= CBPeripheralManager(
浏览 1
提问于2020-08-18
得票数 0
回答已采纳
1
回答
如何与核心蓝牙API交互的单元测试代码?
objective-c
、
unit-testing
、
core-bluetooth
、
kiwi
、
ocmockito
我想对一个
类
进行单元测试,该类充当CBPeripheralManager
类
的一个CBPeripheralManager。通常,为了消除外部类依赖项,我将通过
类
初始化程序传入或通过属性使用依赖注入形式。API时,我已经能够使用像Kiwi这样的库来存根返回单例(即[ClassName stub:@selector(sharedInstance) andReturn:myStubbedInstance])的
类
级方法因此,任何使用我的
类
的代码都需要这样做: PeripheralManagerWrapper *wr
浏览 5
提问于2014-01-24
得票数 6
回答已采纳
1
回答
类
不符合Swift中的“CBPeripheralManagerDelegate”
cocoa
、
swift
、
cbperipheral
在object中,这个协议是初始化
PeripheralManager
对象所必需的,但是在Swift中,我将得到以下错误: // ...给出错误: 由于我的
类
没有采用该协议,所以当我尝试使用自动完成初始化
PeripheralManager
self.
peripheralManager
= CB
浏览 6
提问于2014-07-21
得票数 2
回答已采纳
1
回答
Android things Raspberry pi 3错误:更新到最新的依赖项(开发人员预览7)-"PeripheralManagerService无法解决“
raspberry-pi3
、
android-things
更新到最新的依赖项(Developer 7)-"PeripheralManagerService无法解决“
浏览 1
提问于2018-03-08
得票数 0
1
回答
PeripheralManager
力分离
ios
、
swift
、
bluetooth
我已经为安卓和iOS应用程序开发了一个外围连接。连接和通信正在工作,但我还有最后一个要求:我需要能够将所有已连接的中心从外围设备断开(以释放另一个外围设备的连接)。 mBluetoothManager.getConnectedDevices(BluetoothProfile.GATT).forEach { } mGattServer?.close
浏览 4
提问于2022-01-10
得票数 0
1
回答
安卓/ iOS蓝牙低能多业务通信
android
、
ios
、
bluetooth
、
bluetooth-lowenergy
我有一个iOS应用程序,通过以下方式为两个BLE服务(都是主)做广告:
peripheralManager
.addService(preciseService)
peripheralManager
.startAdvertising([CBAdvertisementDataServiceUUIDsKey: [containingService.UUID但是,对其进行过滤之后,就再也
找不到
这个设备了。没有过滤,设备就会被找到,但是在
浏览 1
提问于2015-12-08
得票数 0
回答已采纳
3
回答
PeripheralManagerService抛出NoClassDefFoundError
android-things
我的应用程序中有下面的代码来访问PeripheralManagerServiceGpio ledGpio; ledGpio = service.openGpio("BCM6");} catch (IOException e) { Log.e(TAG, "Error configuring
浏览 0
提问于2018-03-06
得票数 6
回答已采纳
1
回答
外围设备上的CoreBluetooth动态长特征更新
ios
、
core-bluetooth
到目前为止,我有代码示例:- (BOOL)updatePeripheralManager:(CBPeripheralManager *)
peripheralManager
alloc] initWithPeripheralName:peripheralName withCharacteristic:characteristic withData:data];
浏览 0
提问于2016-02-03
得票数 0
3
回答
为什么在ObjectiveC中在参数之前有一个"_“?
ios
、
objective-c
我看到了一些示例代码,如下所示: [super viewDidLoad]; _
peripheralManager
= [[CBPeripheralManageralloc] initWithDelegate:self queue:nil];The ques
浏览 2
提问于2014-04-17
得票数 3
回答已采纳
2
回答
使用核心蓝牙框架将mac mini设置为外围设备
iphone
、
ios
、
core-bluetooth
我尝试为相同的方法创建mac应用程序:我的应用程序实现了CBPeripheralDelegate协议,考虑到didDidLoad方法,我实现了以下代码:
peripheralManager
.delegate=self; 但这不管用。
浏览 8
提问于2013-03-15
得票数 0
回答已采纳
1
回答
Xamarin IOS setDesiredConnectionLatency
xamarin
、
xamarin.ios
、
bluetooth-lowenergy
、
latency
peripheralDelegate = new PeripheralManagerDelegate(); CBPeripheralManager
peripheralManager
= new CBPeripheralManager(peripheralDelegate, DispatchQueue.DefaultGlobalQueue);
peripheralManager
.SetDesiredConnectionLatency
浏览 2
提问于2017-01-16
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
环境健康类选题找不到数据?这篇文章告诉你!
地下车库找不到方向,停车场找不到车找不到出口解决方案
还缺找不到厕所?
Shopee在越南,几乎找不到对手
python的类(三)—枚举类,动态创建类(元类
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券