如何使用蓝牙控制树莓派 All In One

发布时间 2023-04-20 12:19:06作者: xgqfrms

如何使用蓝牙控制树莓派 All In One

Raspberry Pi & Bluetooth & Node.js

$ sudo apt-get update

$ sudo apt-get upgrade

# nvm
$ sudo apt-get install nodejs

$ sudo apt-get install bleno noble
# 想要在 Pi 上实现 central 功能,则要使用 noble

# bleno 依赖其它一些软件框架,主要包括 bluetooth 及 bluez
$ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev

https://github.com/sandeepmistry/bleno

# hciconfig 命令来查看设备信息
$ hciconfig dev

demos

(? 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

用超低功耗蓝牙控制树莓派3

https://mp.weixin.qq.com/s/cX-BHxC8RBJ8Etj3-f2LtA

https://mp.weixin.qq.com/s/Cznb6XXOUhp54cyX66a0BQ

https://mp.weixin.qq.com/s/EKZ-V97h_U5BcFaVxpFXJg

https://mp.weixin.qq.com/s/riT3WyRoo0wvvcWRMMo6tg

https://mp.weixin.qq.com/s/cICESlwpPk3cBXILYNdQPg

https://mp.weixin.qq.com/s/qrHUE3PPw2bfsALWawnWxg



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 ?️,侵权必究⚠️!