how to distinguish different inputs?

dear programmers,

I have presumably a simple question, because I am a starter.

I will control 2 different leds by 1 hc05 bluetooth module.

if I will give the 2 leds each another value, i have to send 2 different values to my arduino.

how could i make clear to my arduino, wish value is destined for wish led?

greetins peter

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

The simplest way to distinguish the two items is always to send both of them in the same order - even if the value has not changed. That way the receiving Arduino knows that the first value is for LEDA and the second is for LEDB

...R

Or, based on the same thread, send <1,someValue> and <2,otherValue> depending on the LED that you want to control.