Mkr 1010 BLE data stream

I have followed the instructions to upgrade my Mkr 1010 firmware to enable bluetooth. I have successfully connected the arduino to my PC via bluetooth. But I can't seem to find any documentation that tells me what syntax or commands to use to send data from one to the other. The best I can find is by reading the example code, but I'm not making any progress in understanding the bluetooth code.

Allow me to explain what I'm attempting to do. I have a Mkr1010 connected to a BNO080 9 axis accelerometer, triaxial gyroscope, magnetometer. I wish to stream the data from the sensor to a PC through the bluetooth connection. I have successfully made the program work using the WiFi module, but I really need it to work through bluetooth.

My main question is what commands are used to send data through the bluetooth connection? Can I establish a serial link and then just use a Serial.print command?

Any help you might be able to provide is appreciated.

1 Like