1

Topic: Connection lost?

Hi

I am building an electric skateboard and need a way to tell if there is still a connection between my arduino and my phone.
Is there a way i can easily tell if the connection is lost?
It is quite important to prevent crashes. Which already occurred...

2

Re: Connection lost?

Yes.
One of variable of RemoteXY structure tell you this info.

  
struct { 
   .......
    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;