WiFly Shield code library alpha 2 release

i hv configured the module as stated in the reference guide, now i just wanna to send serial data from pc to wifly using the configured IP and Port number,so please help , thaanks

I am writing a WiFlySMTPClient, based off of WiFlyClient and I have run into a few problems, first were header includes. I have sorted it out but the include’s seems create very strange compiler issues. A good example is SPI and SPIUart.

Onto the client, in WiFlyClient.h there is a reference to a WiFlyDevice called _WiFly.

private:

WiFlyDevice& _WiFly;

Here is uart in WiFlyDevice, note it is private.

private:

SpiUartDevice& SPIuart;

Stream* uart;

boolean bDifferentUart;

In WiFlyClient.cpp, they use the _WiFly member variable but access private members and functions.

size_t WiFlyClient::write(byte value) {

/*

*/

_WiFly.uart->write(value);

return 1;

}

size_t WiFlyClient::write(const uint8_t *buffer, size_t size) {

/*

*/

while(size–)

_WiFly.uart->write(*buffer++);

return size;

}

It compiles, I don’t know how. I have taken the two files, copied them to WiFlySMTPClient.h/cpp, removed a couple of no-applicable functions and I get that uart is a private member. If I move it to public, it works. So, what is confusing is how can they access a private member, did I miss a “friend” or somethings. Anyone got an idea

matt

mtstarr, what version of the library are you using? In the alpha 2 version, WiFly.uart is of type SpiUartDevice&. Also in alpha 2, in WiFlyDevice.h, near the bottom of the class definition, Client and Server are declared as friends.

Tijean:
And I replaced

– if (WiFly.responseMatched(TOKEN_MATCH_OPEN)) {

by

++ if (WiFly.findInResponse(TOKEN_MATCH_OPEN, 1000))

This needs to be in the ‘alpha3’ library.

Using Roving Networks 2.32 firmware.

Spent last few days tracking this down, then after I knew the problem, I then searched findInResponse, and find it’s been here for nearly a year.

Using either the Server example or the ADHOC example, both, intermittently responded before this patch.

Hi guys, I have 2 questions.

I’ve been banging my head against the wall trying to get the RN-XV shield working. I can program the shield manually for infrastructure mode, via Putty.

I’ve found this library, but I don’t know how to find the revision of my RN-XV 171 shield.

  1. Can someone please help me out finding the revision of my RN-XV 171 shield?

  2. Will this library actually work for RN-XV because as I mentioned b4 I’ve banging my head trying to get this shield working for over 4 weeks now. I have also found ANOTHER Library today, WiflyHQ.

My main purpose of using this shield is so I can send emails via smtp. Basically this will involve me using infrastruce mode to connect to my router. I have managed to write up some code and Im getting no compiling errors but I can’t test because the library client functions are not working. so the program gets stuck at

if (!WiFly.join(ssid, passphrase)) {

Also how do I find the revision of the WIfly RN-XV shield?