Go Down

Topic: creating an AdHoc ntwork with RN-XV WiFly Module (Read 714 times) previous topic - next topic


Apr 16, 2013, 03:50 pm Last Edit: Apr 16, 2013, 03:52 pm by sadiqawos Reason: 1
I got an RN-xv WiFly module a few weeks ago and i have been trying to get it working properly. My goal is to create a adhoc network that allows me to  access some accelerometer readings from my smartphone. I was able to scrape together a test program from a few general RN-XV sample codes i found, but nothing seems to really work.
Code: [Select]
#include <SPI.h>
#include <SoftwareSerial.h>
#include <WiFlyHQ.h>

#define rxPin 2
#define txPin 3

SoftwareSerial wifiSerial( rxPin, txPin);

char ssid[] = "XVAdHoc";

WiFly wifly;

void setup()
 Serial.println("Wifly AdHoc");
     Serial.println("Failed to create network, handle error properly?");
 Serial.println("Network Created");
 Serial.print("UpTime: ");

void loop()
 wifly.sendto("Hello, world", "", 2042);
 wifly.println("Hello, world!");

Any help or advice is welcome.

Go Up