İf send data changed...

I am sending data via Bluetooth on arduino.
I want, if received data change,led on.

How make this ?

Compare the received data to the data you received last time you received something.
If they are different, (not equal) light the LED

TolpuddleSartre:
Compare the received data to the data you received last time you received something.
If they are different, (not equal) light the LED

Hi thanks for the answer.
I know but ı cant this code.
Please example me ?
Thanks

Show some effort from your end. This is not a free code writing service. There's a ton of information available online.

Pieter

if (newReceivedData != olderReceivedData)
{
  digitalWrite (ledPin, HIGH);
}

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

...R