Error on my Arduino Bluetooth

Hello everyone,

I have a problem with my Arduino Bluetooth.
I manage to connect to the PC using bluetooth (COM Port 4 with 115200 bauds) but when I want to transfer a program inside it does not work. Here is the error message :

avrdude: stk500_getsync (): not in sync: resp = 0x00
avrdude: stk500_disable (): protocol error, expect = 0x14, resp = 0x51

I have checked in Tools> Board and Tools> Serial Port !

So, I thank you in advance and hope you can help me.

Ps: here is my code (it’s a fake program but in case there should be something special …)

include <Servo.h>

Servo Servo1z;
Posiz int = 90;
Potentioz int = 0;
int Tensionz;

void setup ()
{
Serial.begin (115200);
Servo1z.attach (2);
}

void loop ()
{
if (Posiz! = 90)
{
Servo1z.write (90);
delay (1000);
}
Tensionz analogRead = (Potentioz);
Serial.print (Tensionz);
} [/ quote]

Ideas … ? Please it’s more urgent is for the school. If you have any idea, feel free to send it. Thank you.