background preloader

WiFly GSX Breakout

Facebook Twitter

Normal - WiFly GSX Breakout. WiFly-RN-UM. VFD Clock Connects to the Internet « Robotics / Electronics / Physical Computing. _________________________ wiFly.h #ifndef WIFLY_H_ #define WIFLY_H_ #include "util.h" char wf_httpOpen(const char* server, const char* page); #endif /* WIFLY_H_ */ _________________________ wiFly.c #include "wiFly.h" #include <util/delay.h> #include <string.h> uint8_t findInResponse(const char * str){ if(uart_waitChar(1000)){ char ch = uart_getchar(); while(ch !

Uart_waitChar(300); ch = uart_getchar(); if(ch ! For(uint8_t offset = 1; offset < strlen(str); offset ++){ if(uart_getchar() ! Return 1; return 0; #define CMD(x) uart_emptyReadBuffer();uart_puts_nl(x); char wf_httpOpen(const char* server, const char* page){ CMD("exit") CMD("close") _delay_ms(250); uart_puts("$$$"); CMD("ver") if(! Uart_puts("open "); uart_puts(server); uart_puts_nl(" 80"); if(! Uart_puts("GET "); uart_puts(page); uart_puts(" HTTP/1.0\r\nHost: "); uart_puts(server); uart_puts_nl("\r\n"); return 'n'; _________________________ textParser.h #ifndef TEXTPARSER_H_ #define TEXTPARSER_H_ #define TEXT_DELIM '"' #define TEXT_SEP '-' typedef struct { if(ch !

Normal - Arduinology. Herbie555 asked: I'm attempting to use WiFlySerial 1.08 with a RN-XV and a Sparkfun ProMicro 3.3V.Wired using the standard pins 2,3, but all my sketches, including WiFlyTest, are hanging at/around the first call to WiFlySerial::begin(). I've checked the wiring continuity and experimented with swapping the pin assignments (3,2 instead) and changing the default baud rate, but I simply cannot get past this first step. 2 RN-XV boards, so I'm reasonably certain it's not a damaged unit. Anything else I can try? Hi Herbie555, WiFlySerial does look for the version number of the RN chip firmware… RN’s send it as part of their command prompt.

Set the library’s version number to your RN’s firmware version … might help. Let us know either way! Cheers, 9:41 pm • 1 February 2014 dbiondy1 asked: hi, i'm using wifly rn-171 wifi shield i wanna ask, can wifly rn-171 works as an access point and connect it to android smartphone? Hi dbiondy1, Cheers, 8:18 pm • 17 August 2013 Hi bilalhammoud21, Hi oeweatherballoon, Arduinology. Normal - Cairo Hacker Space. A beginner’s guide to connecting and operating the WiFly to Arduino Serially.

We were working on a home automation project , we used the wifly gsx in our project .When we bought it, we thought it will be easy to communicate it like a serial modem between the arduino and PC ,,, of course we are not noobs :) but every inch in the datasheet made us feel like one :)And when we searched for a solution for even one of our countless problems we faced.... the result can be summarized in three words ... WIFLY NOT WORKING or we are noobs :D Of course i am kidding :) ,,we are not noobs and wifly is WORKING :o , thanks to sparkfun wifly library and We decided to start our new virtual hackerspace with this easy step by step tutorial for wifly :Please post any problem you faced with wifly or arduino . boolean initSettings() WiFly.SendCommand("set wlan auth <value>","AOK"); //WiFly.SendCommand("set wlan key <value>","AOK"); WiFly.SendCommand("set wlan channel <value>","AOK"); WiFly.SendCommand("set wlan join <value>","AOK");

A beginner’s guide to connecting and operating the WiFly to Arduino Serially « Cairo|Hackerspace. We were working on a home automation project , we used the wifly gsx in our project .When we bought it, we thought it will be easy to communicate it like a serial modem between the arduino and PC ,,, of course we are not noobs but every inch in the datasheet made us feel like one And when we searched for a solution for even one of our countless problems we faced…. the result can be summarized in three words … WIFLY NOT WORKING or we are noobs Of course i am kidding ,,we are not noobs and wifly is WORKING , thanks to sparkfun wifly library and We decided to start our new virtual hackerspace with this easy step by step tutorial for wifly :Please post any problem you faced with wifly or arduino . boolean initSettings() WiFly.SendCommand(“set wlan auth <value>”,”AOK”); //WiFly.SendCommand(“set wlan key <value>”,”AOK”); WiFly.SendCommand(“set wlan channel <value>”,”AOK”); WiFly.SendCommand(“set wlan join <value>”,”AOK”); WiFly.SendCommand(“set dhcp <value>”,”AOK”); Show.

Arduino WiFly Driver - Browse Files. NewSoftSerial | Arduiniana. A New Software Serial Library for Arduino News: NewSoftSerial is in the core! Starting with Arduino 1.0 (December, 2011), NewSoftSerial has replaced the old SoftwareSerial library as the officially supported software serial library. This means that if you have 1.0 or later, you should not download this library.

To port your code to 1.0, simply change all NewSoftSerial references to SoftwareSerial. NewSoftSerial is the latest of three Arduino libraries providing “soft” serial port support. Without interrupts, your program’s design is considerably restricted, as it must continually poll the serial port at very short, regular intervals. Improvements NewSoftSerial offers a number of improvements over SoftwareSerial: *But see below for an important caveat on multiple instances. Using Multiple Instances There has been considerable support for an library that would allow multiple soft serial devices. What does this mean, exactly? Signal Inversion Library Version Resource Consumption Download. Streaming | Arduiniana. Streaming C++-style Output with Operator << Note: Streaming 5 is now Arduino 1.0 compatible. New users sometimes wonder why the “Arduino language” doesn’t provide the kind of concatenation or streaming operations they have become accustomed to in Java/VB/C#/C++, etc.

Meanwhile, experienced programmers chafe at having to synthesize streams with clumsy blocks of repetitive code like this: The Streaming library gives you the option of compressing those into “insertion style” code that, if not exactly the same, is reminiscent of the concatenation above: This library works for any class that derives from Print: With the new library you can also use formatting manipulators like this: This syntax is familiar to many, is easy to read and learn, and, importantly, consumes no resources. I hope someday that this simple template will become part of the Arduino core as a stylistic option to writing series of prints. Download The latest version of Streaming is available at Streaming5.zip. Version. Playground - Time. PString | Arduiniana. A Lightweight String Class for Formatting Text Note: PString 3 is now Arduino 1.0 compatible. Since Print was introduced with Arduino 0012, several classes, including HardwareSerial, LiquidCrystal, Ethernet Client/Server, and my own NewSoftSerial, have been written to leverage its text rendering engine.

But getting formatted text to output devices not in this short list still requires either writing custom code or turning to expensive alternative solutions like sprintf(). PString (“Print-to-String”) is a new lightweight Print-derivative string class that renders text into a character buffer. In its simplest use case, you deploy an “on-the-fly” constructor to format text: This code uses Print’s float rendering functions to generate the string equivalent of pi into buffer. Since PString inherits from Print, PString objects can do everything that other Print-derived classes do: This generates the expected sentence in buffer the same as if you had printed to the Serial port. Operators Download.

WiFly Shield