byte blueIn;
void setup(void) {
Serial.begin(9600);
}
void loop(void) {
if (Serial.available()){
blueIn = Serial.read();
Serial.println(blueIn);
}
}
So, I wrote an App for my Smartphone, which sends via Bluetooth (HC-05 module) 3 bytes to my Arduino Nano every second. The serial monitor prints every single number in a new line, which is good because it gets the bytes one at a time.
Example:
18
31
0
(1 sec delay)
18
31
0
How can I declare every incoming byte for its own?
for example:
blueInHour = 18
blueInMinute = 31
blueInDirection = 0
I need every variable for another operation.
ty for responding <3