HTTP STRING from AT command via serial

Hi everyone,
I would like to know if you have tried to create a software function that transmits via HTTP to the server via a serial communication, communicating a certain value.

The example syntax should look like this:
If serial UART1 receive ATcommand xx
Then WIZ550 sent to other server this HTTP string POST: http://[IP_server]/door_status.htm?status=allarm.

Thanking you, I look forward to your news.
GIUSEPPE

Hi Giuseppe,

Do you use WIZ550io?

Sorry, we do not have the example you want.

The feature you want is you have to implement it on your MCU yourself.

Thank you.

Scott

Hello,

As scott mentioned, we do not have an example.
But it is very easy to implement what you said.
What firmware are you using?
If you are using iolibrary, try the following.
You have to modify it as I wrote it simply.

 switch(getSn_SR(sn))
   {
      case SOCK_ESTABLISHED :
         if(receive_ATcommand xx){
             buf="POST /door_status.htm?status=allarm HTTP/1.0\n\n";
             send(sn, buf, size);
        }
         break;
      case SOCK_INIT :
    	 if( (ret = connect(sn, destip/*[IP_server]*/, 80)) != SOCK_OK) return ret;
         break;

      case SOCK_CLOSED:
    	  close(sn);
    	  if((ret=socket(sn, Sn_MR_TCP, any_port++, 0x00)) != sn){
                 if(any_port == 0xffff) any_port = 50000;
                return ret;
        } 
         break;
      default:
         break;
   }