# HOW send SPI buffer by TCP socket

**URL:** <https://forum.sierrawireless.com/t/how-send-spi-buffer-by-tcp-socket/5537>\
**Category:** Open AT\
**Created:** [April 3, 2012, 10:01am UTC](https://forum.sierrawireless.com/t/how-send-spi-buffer-by-tcp-socket/5537 "2012-04-03T10:01:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![asem84](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@asem84](https://forum.sierrawireless.com/u/asem84)\
**Post date:** [April 3, 2012, 10:01am UTC](https://forum.sierrawireless.com/t/how-send-spi-buffer-by-tcp-socket/5537/1 "2012-04-03T10:01:08Z")

</div>

Hello,

I’m newbie in the HTTP communications and i want to send the data received from the SPI bus to a server using a HTTP connection. I have studied the user guide and I have saw the examples.  
The sample code is:

```auto
AT+WIPCFG=1 // Istart IP stack

AT+WIPBR=1,6 // I open GPRS bearer

AT+WIPBR=2,6,11,"APN name" //I set APN name GPRS bearer

AT+WIPBR=2,6,0,"USER NAME" //I set user name (login)

AT+WIPBR=2,6,1,"PASSWORD" // I set password

AT+WIPBR=4,6,0 //start GPRS bearer

AT+WIPCREATE=2,1,"102.221.xxx.254",80 //create theTCP client on port 80,idx=1

AT+WIPDATA=2,1,1 //exchange data on socket index 1
```

My question is: How can i put the data saved in the buffer in the socket 1 for send it ❓ CAn I use the WIP\_write function??

Thank you

---

_[View the full topic](https://forum.sierrawireless.com/t/how-send-spi-buffer-by-tcp-socket/5537)._
