-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFly/UART support #5
base: master
Are you sure you want to change the base?
Conversation
…ary API mapping. untested.
…his sends a \n\n, so I've adjusted the WiFlyClient class to support that notion.
Hi Derek, I was hoping to take a look at this yesterday but didn't get the opportunity. I will be offline this weekend but will make reviewing this a priority for Monday. Thanks for putting this together and sorry for the delay. -kevin On Feb 10, 2012, at 4:08 PM, Derek Perez [email protected] wrote:
|
Cool, I've just committed some Debugging stuff we can take out later on. Also, trying to simplify the data type requirements here and there. Here's where I'm at right now, I'm trying to run this code: https://gist.github.com/4daf3c2a14c9e9a28d88 It appears to hang on the call to _client.connect() within the WebSocketClient.cpp, not sure what to do :( Its possible that my C++ code doesn't work, at all. Something about the ampersands? I dunno, hoping you can help me get through this bit. |
Hey perezd, Also, the EchoExample.ino included with the ArduinoWebsocketClient wasn't building either. This appears to have been related to some missing include statements and a mismatch with the WebsocketClient constructor. Some thoughts: _WiFly_Test build output_ WiFly_Test.cpp:9:23: error: Streaming.h: No such file or directory _EchoExample build output_ In file included from /libraries/ArduinoWebsocketClient/WiFlyClient.h:5, |
I think you may be missing the dependencies of WiFlySerial, you need the following:
That should make the WiFlySerial project work better :) As for the example of it working, I've had mixed results with the examples folder, here is a gist of the exact code I use that is working 100% everytime: You should be able to telnet to whatever IP address it gives you (check the serial output), on port 2000, and send it l key and h key, on their own lines, and have it send high/low signals to port 9, I'm using it to light up an led. Good call on the ifdefs, I guess the thing to do is to checkout my fork/branch and commit changes to it? Definitely need a bit of guidance, I've not written for arduino/C++ before, really. |
any updates? |
…pdated EchoExample to use WiFly
Derek, Unfortunately while everything is compiling I wasn't able to successfully get my WiFly board to connect to a network. This could very well (probably) be a hardware issue on my end. Can you try running the WiFly_EchoExample and see if it works on your board? P.S. I like your idea of making the WiFlyClient essentially mimic the Ethernet API methods and passing those through. As you stated, it's a thin shim. Thanks, On Feb 15, 2012, at 11:18 AM, Derek Perez wrote:
|
Hey Kevin, I'm going to be testing this out right now. I'll get back to you shortly, sorry for the delay! |
So yeah, this is where I was at as well...I can't seem to figure out why this doesn't run, either. Do you know anyone we can get into this to peek at our work? |
It seems like something goes wrong as soon as _client.connect happens, not sure how else to investigate :( |
Yep, I'm seeing the same thing. On my device it gets stuck inside the call to _WiFly.begin() (inside WiFlyClient.initializeWiFly()). It's possible that I need to configure the tx/rx pins. Also, what Arduino board are you using? I'm on a Mega 2560 with rerouted pins 10-13 to 50-53. Also, there was a patch to the official WiFly library posted today to support Arduino 1.0. I haven't tried it yet but it's promising: sparkfun/WiFly-Shield#7 -kevin On Feb 17, 2012, at 11:16 AM, Derek Perez wrote:
|
Running into the same problem - something around _client.connect. Any new ideas on what's happening? |
Anything happening on this front? |
I haven't had time to do anymore work on this. I'd love to hear if anyone was able to get it working though. |
I thought we could make this official, so I started a pull request.
So, the reliance on the WiFlySerial module (here: https://github.com/perezd/arduino-wifly-serial) makes our WiFlyClient shim very small.
Outstanding concerns:
NOTE: lets not pull this into master yet, until we've got it working, just wanted this here for discussion purposes.