Hi, guys !
I dunno if that topic has already been discussed here, but I couldn’t find any thread about it.
I have several modems (with a Q24+ chip) spread across town, and I need them to periodically write a value in a SQL database. In a first time, what I did was to open a FTP session and upload a file containing the value on the server. Then I have a cron task on the server that reads the file and insert its content into the database.
To avoid the FTP encapsulation, I thought about trying to do the same with a TCP connection : I manage to establish the TCP connection between the modem and my web server, but now I’d like to open a PHP script (passing the value with the GET method) that would automatically insert the value into my database. Does anyone know if it’s possible, and what commands I have to issue after connecting to the server ?
Or maybe you have a better idea on how to read/write a SQL database from a Q24+ modem ?