Working with BLE module
Posted: Thu May 21, 2020 9:58 am
Hi,
I am not able to connect to freematics one through bluetooth. I just uploaded the below code.
Can someone help me with this?
I am not able to connect to freematics one through bluetooth. I just uploaded the below code.
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial Bluetooth(0,1); // RX, TX
void setup() {
Serial.begin(9600);
Serial.println("start1");
Bluetooth.begin(9600);
Bluetooth.write("start2");
}
void loop() {
Serial.println("loop1");
if(Bluetooth.isListening()) {
Bluetooth.write("loop2");
}
delay(1000);
}