So could I write a program in C that sends data to the Arduino
and then link it to the program in Arduino as a function
How does that work?
That's all a bit confusing. So there is no way, in an arduino sketch, to send information from the PC to the Arduino board without having to type it into the serial monitor?
Basically, what I'm trying to do is turn on an LED light if the arduino and PC are paired.
Can I get the COM3 (Arduino) and COM4 (PC) to talk to eachother using Arduino IDE?
I haven't yet found a function that lets you mess with the COM ports.
I know that if i do Serial functions i can go send a message from COM3 (Arduino) to COM4 (PC).
Obviously the bluetooth chip on the Arduino is well aware of if it is paired with the PC. Why can't I access that and use it to turn on an LED?