小编san*_*try的帖子

npm package.json OS特定依赖项

有没有办法在npm package.json文件中指定操作系统特定的依赖项?

例如,如果用户运行Linux ,我只想安装'dbus'(https://npmjs.org/package/dbus)作为我模块的依赖项.我对Mac和Windows有不同的依赖.

node.js npm node-gyp

59
推荐指数
2
解决办法
2万
查看次数

蓝牙低功耗(BLE)服务 - Mac OS X.

是否可以在Mac OS X上提供BLE服务?

从这里找到的CoreBluetooth文档http://developer.apple.com/library/mac/#documentation/CoreBluetooth/Reference/CBCentralManager_Class/translated_content/CBCentralManager.html看起来你可以扫描并连接到外围设备.我希望扮演一个perisperhal.

macos bluetooth core-bluetooth bluetooth-lowenergy

10
推荐指数
1
解决办法
1万
查看次数

BlueZ 5.4 DBus API ConnectProfile GATT 服务 UUID

如何使用带有 BlueZ 的 DBus API 连接到 GATT 服务?

我使用 BlueZ DBUS API 来发现设备、连接和发现 GATT 服务 UUID。

但是,当我尝试为 GATT 服务 UUID 之一连接配置文件时,出现错误。

dbus bluetooth-lowenergy bluez

5
推荐指数
1
解决办法
3138
查看次数