This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending data to Arduino 101

I would like to start off by saying I am not a very experienced programmer and I only have base knowledge of Java and Android Studio. Furthermore, I have no experience in Bluetooth communication or BLE. I've done a lot of research, went through some of the tutorials on here and I would like to know how I can send data to my Arduino 101 to simply turn on a LED. I've used the nRF Connect app to do this and it works fine but my project requires me to make my own android app to do this. A simple solution would be helpful since I am pressed for time. I'd also like to know if I'm on the right path, from what I understand, the app would be the GATT Client and the Arduino 101 is the GATT server. If I want to send data to the Arduino to turn on an LED, is it required for me to create a custom service? How exactly does it work, do I read the service from the Arduino then write something to it to turn on the LED, or do I have to create a custom service that will write to the Arduino. A breakdown of the process of what happens when you use the GATT Client to send a notification to the GATT server for the Arduino to know to turn on the LED would also help in clarifying things. My knowledge on BLE is in pieces as of now. Thanks in advance.

Edit: An answer to any of my questions would be really helpful in clarifying things as I am unable to move on at the moment.

Related