I have a successful project based on the Arduino R4 Wifi and an Adafruit 1.8 display shield with joystick. this project provides a menu displayed on the shield which can be navigated around with the joystick. The arduino also acts as an HTTP server and on a separate port a sockets server (using mSockets libray) it serves up a webpage and then provide bi directional comms via sockets to update both client and server. This all works well. So I decided I would like to expand functionality and features but ran in to memory limitations, so thought I would try the Giga R1 Wifi. However this is where I ran in to a couple of problems.
-
I cant see how to get support for my Adafruit 1.8 shield with joystick on the Giga?
-
On looking at the available documentation I can see that the previous mSockets library is no longer compatible and the documents suggest that it is all built in to WiFi.h and you can simply change from the previous WiFiS3.h to WiFi.h, and use declarations such as WifisocketServer. But there is a lack of any examples of this and many lines of the old code will not compile. Does anyone have examples of how to use sockets in this newer environment, and attach call back functions to onconnection, onmessage etc, or whatever the new method may be.
Many thanks for any help with this.