setDelayCmd

setDelayCmd( )

Description
Define the speed of communicating to smart phone

Syntax
setDelayCmd(delay


Parameters
  delay : int value of milliseconds (randge > 20ms)
             default value : 50ms


Usages
setDelayCmdl(20)


Examples in arduino

#include "AppGosu.h"
AppGosu app;

void setup() {    
    app.start();
    app.setDelayCmd(20);  // max speed 20ms

    myStart();
}

void loop() {
  
 
} // end of loop

//---------------------------------------------------------
void serialEvent() {
      app.serialMessage();
      EventLoop();
}
void EventLoop() {
    if( app.btConnected()) {   // for auto starting
        myStart();
    }
  
    // user event code here

}
//---------------------------------------------------------
void myStart(void) {
    // user starting code here
 
    app.clearAll();

}














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













No comments: