Hi.
I'm planning to create an android app that will send commands and receive some results to/from a raspberry pi 3 module. For example one such command could be to enable a fan for 3 mins. For these three mins (while the fan is running) the raspberry pi will send the temperature data received from a temp sensor, in the app side, where a graph with these values will be provided.
The way I'm thinking of it:
The app is going to scan for available devices.
It will connect to the raspberry pi.
A python Bluetooth server will run on the raspberry pi site executing the commands that the android app sent to it and will send back to the app some of the data.
So far I found by a search on the internet, the Evothings framework but I would like to read your suggestions on how to build quite easily such app.
Thanks
Top comments (2)
I'm going to assume you have Arduino setup on the board? Assuming this, you can build an API server in Python that exposes some methods (see mock below), and the Android application will call it. Alternatively, bluetooth can work, but you're limited by the surrounding area (be within X distance of bluetooth device).
Let's assume you have four tasks:
I would personally sketch the UI with giant buttons for each (Turn on Fan w/ selector, turn off, etc...), next I would mock the API as follows:
Throughout the POST route, I would create an individual controller for each module, and have three action, for example:
I appreciate your answer but I strictly have to use Bluetooth protocol for the communication and not WiFi. Also, my problem and lack of knowledge is more in the android app side and not on how to design the python API.