Hi, thank you for checking this out. someone put together an Arduino Due with a “Adafruit Bluefruit LE UART Friend” for me to control the temperature of something.
I can use the Bluefruit Connect app to send UART commands to accomplish what I want to do, but was trying to make an app with buttons that would send the text instead.
To start, I have been able to create an app that scans for bluetooth devices, connects to the Bluefruit LE, and shows the buttons to enable/disable the heat… I installed the app successfully on my phone, and connected to the device, but when I try to enable it, the app just crashes. I assume that is because I am sending the command the wrong way. I have found some sources that talk about sending numerical values and strings, but none of them seem to exactly apply to what I am doing.
To start, I just want to have a button send the text “enable” like Bluefruit connect would, but at the push of a button instead of manually typing it out.
The complete set of commands is “enable” “disable” and “[desired temperature]”
References here:
This seems really useful, but I don’t know if it directly translates to what I want to do.
This seems to be the closest to what I am working on, but did not get me there.
I also found a blog post that said all example projects now have BLE build into them, but I’m not sure where to find the official example files. I cannot link to that article because I am a new user and am limited to two links per post. I did find a set of them from an old page on the site, and they did not have new BLE extensions in them.
My block layout:
Bluefruit Connect Screenshot after connecting. It seems to report some active values: