Establish connection to an Cinterion MC52i from a Webserver? | Thales IoT Developer Community
March 19, 2014 - 1:19pm, 9165 views
Hi,
I'm searching for a way to establish a connection from my Webserver to an Cinterion MC52i. First: is this possible? On the server runs PHP. I think the best way to communicate is the TCP/IP stack, but where to start?
Thank you and best regards ...
Hi
It means for every http request the connection has to be opened and closed?
Can you suggest some other way where connection is established once and write and read is possible until some issue occurs on client or server side?
Regards,
SS
Hello,
This is for HTTP and not for normal socket. The connection is open, HTTP request is sent (for example GET or POST), then you can read all data (in case of GET) o write all the data for POST then read the reply and the connection is closed automatically (you still have to call SISC on it). For another HTTP post or GET you need to open another connection. That's how it is implemented for HTTP via AT commands. In case of socket connection you can open it and keep open as long as you want (or until it's disconnected by the other party or the context is disconnected by the network).
Best regards,
Bartłomiej