Forum >Replies by stephen_ball1993
userhead stephen_ball1993
Replies (1)
  • You Reply: I have had some luck getting the name to change using the same kind of method I was talking about, some of the syntax was incorrect. However my problem now is that the BLE name will only update on my mobile when I turn the bluno off and then back on. I was hoping the name would update without having to do this.

    My code is shown below. I was expecting to see the name cycle through the values 50, 100 and 200 with 2 second intervals on my mobile but this is not the case.


    Code: Select all
    void setup() {
      pinMode(13, OUTPUT); // This the onboard LED
      pinMode(8, OUTPUT); // This is connected to the buzzer
      Serial.begin(115200);    //Initiate the Serial comm
      Serial.print("+");
      Serial.print("+");
      Serial.print("+");   // Enter the AT mode
      delay(500); // Slow down and wait for connectin establishment
     }


    void loop(){

       Serial.println("AT+NAME=50");
       delay(2000);
       Serial.println("AT+NAME=100");
       delay(2000);
     
        Serial.println("AT+NAME=200");
       delay(2000);
     

    }


    void enterATMode(){
     
      Serial.begin(115200);    //Initiate the Serial comm
      delay(1000);
      Serial.print("+");
      Serial.print("+");
      Serial.print("+");   // Enter the AT mode
     
    }