您好我可以将数据从android发送到arduino但我无法通过蓝牙将数据从arduino发送到android上我没有得到任何错误但我看不到任何显示的Android应用程序..我用于blueToothSerial.print(XXX); 对于arduino side ..并使用了文本(readMessage,width,heigth); 处理方.请检查一下 .我的错在哪里?.我错过了什么?提前致谢
**在arduino方面**
#include <SoftwareSerial.h>
#include <Stepper.h>
#define RxD 6 // This is the pin that the Bluetooth (BT_TX) will transmit to the Arduino (RxD)
#define TxD 7 // This is the pin that the Bluetooth (BT_RX) will receive from the Arduino (TxD)
#define DEBUG_ENABLED 1
#define RELAY 4
SoftwareSerial blueToothSerial(RxD, TxD);
int led = 9 ;
int in1Pin = 10;
int in2Pin = 12;
int in3Pin = 11;
int in4Pin = 13;
data = 100; …Run Code Online (Sandbox Code Playgroud)