# FX30 - Problem with using "recv" function

**URL:** <https://forum.sierrawireless.com/t/fx30-problem-with-using-recv-function/16629>\
**Category:** FX30\
**Created:** [June 11, 2019, 3:01am UTC](https://forum.sierrawireless.com/t/fx30-problem-with-using-recv-function/16629 "2019-06-11T03:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [June 11, 2019, 3:01am UTC](https://forum.sierrawireless.com/t/fx30-problem-with-using-recv-function/16629/1 "2019-06-11T03:01:13Z")

</div>

Hi all,

Having problems with the **recv** function receiving data from the network socket. Sometimes the functions holds the received data in the buffer. I can trigger and receive of the data by performing a workaround, I use the **send** function to send to the socket with no data in it’s buffer.

I have included my code. Hopefully someone can help me figure out what’s wrong. The funny thing is, that if I use my T-Mobile account, that only connects to the GSM rat, the app works great, without the need of the **send** workaround.

Thanks!

Eddie

[FX30S\_CellcommComponent.c (30.0 KB)](https://forum.sierrawireless.com/uploads/short-url/z0B8SUjBT8QQx9cSbkz5tObmLfS.c)

---

<div class="post-metadata">

**Author:** ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)\
**Post date:** [November 8, 2019, 3:47am UTC](https://forum.sierrawireless.com/t/fx30-problem-with-using-recv-function/16629/2 "2019-11-08T03:47:53Z")

</div>

Hi,  
You can check sleep mode on your device, or the connection time-out for TCP connection (it can be set on server).  
For more details, you can raise your question on this forum: [https://forum.legato.io/](https://forum.legato.io/)

Thanks,
