btName( )

btName( )

Description
set the name of bluetooth module

Syntax
btName(String s)


Parameters
s : the name of bluetooth 

Usages
btName("NAME")

Examples in arduino

#include "AppGosu.h"
AppGosu app;


int LED = 13;

void setup() {    

    pinMode(LED,OUTPUT); 
    digitalWrite(LED, LOW); // LED off 
  


    app.start();
    app.nop();   app.nop();   app.nop();
    delay(1000);

    app.btName("ABC123");
    delay(300);
}

void loop() {
  digitalWrite(LED, LOW); // LED off 
  delay(700); 
  digitalWrite(LED, HIGH); // LED on
  delay(700); 
 }



//  1. Open  RX(D0) pin
//  2. Upload
//  3. Press Reset button







by AppGosu
-----------------------------------------



















No comments: