I'm new to the Bluefruit Connect App, and am wondering whether it's even possible to connect to the CP Bluefruit via UART without opening the serial monitor first?
I'd like to be able to plug (and unplug) the device from an outlet without having to reconnect to my laptop. Would be great to know if there are any workarounds, alternate solutions, OR whether this is just par for the course.
Thanks!
UART with Circuit Playground Bluefruit & Connect App without
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- romano47
- Posts: 14
- Joined: Tue Jul 07, 2015 12:30 pm
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: UART with Circuit Playground Bluefruit & Connect App wit
You should be able to use the CP Bluefruit without a mandatory console, but you might need to modify the code. There is often a wait for serial loop that looks like this on the Arduino side:
You would need to comment out the while(!Serial) line.
Which code example have you been using or if you like paste in the code that you have been using here.
Code: Select all
Serial.begin(9600);
while (! Serial); // Wait untilSerial is ready - Leonardo
Serial.println("Enter LED Number 0 to 7 or 'x' to clear");
Which code example have you been using or if you like paste in the code that you have been using here.
- romano47
- Posts: 14
- Joined: Tue Jul 07, 2015 12:30 pm
Re: UART with Circuit Playground Bluefruit & Connect App wit
Gah, so easy. Thank you (and, I should have scrutinized the code more before posting). This worked perfectly.
Please be positive and constructive with your questions and comments.