/* program to test rConnect procedure
 *
 * This program and all MyroC software is licensed under the Creative Commons
 * Attribution-Noncommercial-Share Alike 3.0 United States License.
 * Details may be found at http://creativecommons.org/licenses/by-nc-sa/3.0/us/
 */

#include "MyroC.h"
#include <stdio.h>

int main ()
{
  /*
  rConnect ("/dev/tty.IPRE6-365897-DevB");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  rDisconnect ();
  */

  /*
  rConnect ("/dev/tty.Fluke2-0958-Fluke2");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  rDisconnect ();
  */

  /*
  rConnect ("365897");
  printf ("connection made\n");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  rDisconnect ();
  */


  rConnect ("0950");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  rTurnRight (1.0, 1.0);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);


  /*
  rConnect ("0958");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  rTurnRight (1.0, 1.0);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  */

  /*
  rConnect ("ABC");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);

  rConnect ("ABCD");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);

  rConnect ("1234567");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);

  rConnect ("/dev/rfcomm0");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);

  rConnect ("/dev/rfcomm1");
  rBeep (1.0,  880);
  rBeep (1.0, 1760);
  rBeep (1.0,  880);
  */

  return 0;
}
