Node.js 如何通过蓝牙在ESP32和RPI 3之间更改数据?
我想通过BLE将数据从ESP32发送到Raspberry Pi 3,优先使用Node.js。有什么建议吗Node.js 如何通过蓝牙在ESP32和RPI 3之间更改数据?,node.js,raspberry-pi,bluetooth-lowenergy,esp32,Node.js,Raspberry Pi,Bluetooth Lowenergy,Esp32,我想通过BLE将数据从ESP32发送到Raspberry Pi 3,优先使用Node.js。有什么建议吗 谢谢:D我已经用安卓手机完成了: 这是ESP32部分 #include "BluetoothSerial.h"; BluetoothSerial SerialBT; void setup(){ Serial.begin(9600); SerialBT.begin("My ESP32"); } void loop(){ if (SerialB
谢谢:D我已经用安卓手机完成了: 这是ESP32部分
#include "BluetoothSerial.h";
BluetoothSerial SerialBT;
void setup(){
Serial.begin(9600);
SerialBT.begin("My ESP32");
}
void loop(){
if (SerialBT.hasClient()) {
SerialBT.println("Here is my message");
}
delay(200);
}
然后你应该看看覆盆子pi3是怎么回事
我测试了其中一个,不记得是哪一个。
问题是,如果我没记错的话,他们需要旧的NodeJ、v8.x或v10.x