Interfacing problem

I am facing problem in interfacing of hc05 bluetooth module with arduino Due board, when my board is connected at programming port. so, is there any problem in my code, if then please reply...

void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(13,OUTPUT); }

void loop() { // put your main code here, to run repeatedly: char; while(Serial.available()>0) { if(in=='1') { digitalWrite(13,HIGH); Serial.println('on'); } if(in=='2') { digitalWrite(13,LOW); Serial.println('off'); } } }

What does it do? What does it not do? Do you get any error messages? What exact bluetooth module do you have? Do you have a manual for it? Does it require setup/configuration? Can you test the bluetooth communications independently of the Arduino? What is the schematic for your wiring? Have you wired it up according to the schematic?