Hello, I'm working on a project with 2 thermocouples and a RTC that are connected to an Arduino. I'm in the works of having an app that will display the temperature and the time on it. I'm very new to C++ and Arduino so i am not sure how to output my data via Bluetooth and to make the system wait for input via Bluetooth. I've been looking over the forums and it seems that each library has a different method of going through this but i cannot find what i need.
I'm still in the process of making the app on MIT app inventor. I'm trying to figure out how to make the app read the data and assign it to a variable, and how to make the code send the data for the app to read. Yes, I am using HC 05.
Would it be easier if i created a listed with all of my data and then used "," as a delimiter to break it apart?
It would read a byte from the hardware Serial interface and write it to a serial interface names BTSerial
However, that is not what you see to want to do. Rather you want to read a sensor that returns the temperature and an RTC that returns the time and output that to an instance of SoftwareSerial that is connected to the Blue tooth module. How often that you do that and the format of the output is controlled by the program running on the Uno
The Arduino will be sending two data values. One is a temperature, so probably a floating point value and the other a time, but what format will the time be in ?
From your answers I believe that you are a long way from succeeding with this project
I'm sorry I misunderstood your question. Yes, the temperature will be a float value and the date will be a string.
And I believe it would be easiest if the app was receiving a list.
I was given this project and it definitely exceeds my knowledge, so i appreciate all the help. Prior to this project I had only coded in python hence the limited knowledge of c++.
Yes I have both the date and the temperature assigned to variables that can be printed to the serial monitor.
My code is about 230 lines but if you would like to see it I can send it. It also includes other unfinished parts trying to display to LCD and writing to an SD card when the temperature goes over a certain amount.