With this project, I've created an app that needs to link to an arduino board using wifi (with ajax). I originally established a connection using a Wifly, however this proved to be very unreliable for repetitive and continuous sending/ receiving. There doesn't appear to be any other stable wifi devices out there.
I have an Ethernet shield and TP-Link which I'm hoping to use, and have read provides much better results for wifi communication.
I connected my phone to the access point over wifi. The access point plugs into the Ethernet shield which then plugs into my Mega2560. Is there a way to modify the Ethernet samples to make this work? In my app, I need to send the ajax request to the access point which can then be analysed in the Arduino program, and then a response will need to be sent back to the phone.
I need to send the ajax request to the access point which can then be analysed in the Arduino program, and then a response will need to be sent back to the phone.
The Arduino with Ethernet shield can be a client, making requests to a server, or a server, supplying answers to clients.
The Arduino with Ethernet shield can be a client, making requests to a server, or a server, supplying answers to clients.
Which role do you want the Arduino to play?
The phone will need to be the server and the Arduino side will need to be the client. I'm just not sure how this needs to be configured from the Arduino side (with the Ethernet shield and access point) in regards to the current Ethernet sample code, since both the access point and Ethernet shield have ip addresses. Do I need to set something in the access point for the Arduino to receive requests from the phone, since it will need to pass through this first?
I have an Ethernet shield and TP-Link which I'm hoping to use, and have read provides much better results for wifi communication.
I've tried two different cheap "pocket routers" with RJ45 ethernet jacks and have not been successful with getting them to do anything. The TP-link cost more, so maybe it will be more functional as an ethernet router for an arduino with an ethernet shield.
I've used a TP-Link TL WR703n and 702n in several projects successfully with an Ethernet shield (W5100) but mostly with a Wiz820io. It's easy to set up and works very reliably.