I am just starting to learn wifi and ethernet shields. I have this task at hand: to transfer data to a web server using wifi shield. My knowledge on networking is limited. At the moment, the data is transferred with a GSM modem. The modem requires a library (no documents) and someone wrote me a function call to send the data (text). I'm trying to understand what type of connection was established and how to replace the GSM modem with the wifi.
Here is the core of the GSM code:
if (myGsmGPRS.socketDialSD("1","0","1035","myServer.com")) {
Serial.println("Socket Opened");
}
Does this look like the modem is opening a socket (TCF socket?) to the myServer.com? The code before this is to establish network connection with the service provider. The code after this is simple println to send data to myServer.com and then closes the socket.
From what I read on Arduino wifi shield, I only see that client.connect() connects to an HTTP server with URL and port 80.
Just being naive here, will client.connect("myServer.com",1035); possibly replace that socketDialSD()?