I want to share with you my first app, called Ltd. Control.
Although many apps which can be used to communicate with the bluetooth
receivers (HC-06, HC-05, HC-10) already exist, they often lack some
features that I wanted and so I created my own app.
The key feature here: A SNES button layout that can be repgorammed with any wanted ASCII character that is sent on button press.
First,
make sure to connect to your bluetooth receiver with a button press on
BLUETOOTH and selecting the receiver. Make sure your phone's bluetooth
is turned on. Once you connect, the BLUETOOTH button will appear with
green letters. Then go to the CTRL tab.
Basically, all buttons on the CTRL tab
send one char byte when they are clicked. However, on long-click they
reprogram their value to match the value currently entered in the text
box below the buttons. Very simple, very powerful.
However, I included some more features in my app: the TXT tab, the DPAD tab and the DATA tab.
In the TXT tab you can send any text you want (the text will be sent char by char).
In the DPAD tab you have a big DPAD button layout for more accurate clicking.
In the DATA tab I connect to the phone's internal clock to receive time&date and also to the openweathermap.org
api, getting the current temperature&humidity. All this data can be
send with a button click on SEND DATA VIA BLUETOOTH. If you open the
blocks you see that I use some code byte's before I sent weather
information etc. This is due to my private project where I need to
identify which data is being sent.
There is one field in the blocks called openweatherURL.
Here, you need to replace the CITYID placeholder with the city's ID of
your interest and you should register for your own API key which you
replace at the end of the link. Please don't ask me for further information about these steps, they are all explained very well at openweathermap.org already.
If
you don't need the temperature&humidty information just go ahead
and download the APK. It will give you all the functionality that I
described above.
If you want to tinker with the project files, go ahead and download the .aia files.
Have fun and any feedback is appreciated :)