# About FreeRTOS Cellular Library and FreeRTOS+TCP

**URL:** <https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214>\
**Category:** Libraries\
**Created:** [January 14, 2022, 7:37am UTC](https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214 "2022-01-14T07:37:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![horigan](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@horigan](https://forums.freertos.org/u/horigan)\
**Post date:** [January 14, 2022, 7:37am UTC](https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214/1 "2022-01-14T07:37:23Z")

</div>

I’m trying to use FreeRTOS Cellular Library and FreeRTOS+TCP from Quectel BG96 on STM32F427 to make MQTT connection.  
However, I am having a problem with tlsHandshake().  
The type of Socket\_t used by Sockets\_Connect() in sockets\_wrapper.c is cellularSocketWrapper\_t.  
The type of Socket\_t used by FreeRTOS+TCP is FreeRTOS\_Socket\_t.  
Therefore, when prvTCPSendCheck() executes prvValidSocket, the result is pdFALSE.

Is there any incompatibility between Quectel BG96’s FreeRTOS Cellular Library and FreeRTOS + TCP?  
Or am I misconfiguring it?

Can you give me some feedback on this issue?

Thank you.

---

<div class="post-metadata">

**Author:** ![Fresh](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@Fresh](https://forums.freertos.org/u/Fresh)\
**Post date:** [January 17, 2022, 7:12am UTC](https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214/2 "2022-01-17T07:12:20Z")

</div>

Hi Horigan,

FreeRTOS Cellular Interface uses TCP/IP stack on cellular modem.  
Therefore, you will only need the [cellular socket wrapper](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Source/Application-Protocols/network_transport/sockets_wrapper/cellular).  
[FreeRTOS+TCP socket wrapper](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Source/Application-Protocols/network_transport/sockets_wrapper/freertos_plus_tcp) is not required if you only want to use cellular network.

If you’re having problem disabling either one of the socket wrappers, please help to provide more information. We will read the message and reply.

---

<div class="post-metadata">

**Author:** ![mhl](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mhl](https://forums.freertos.org/u/mhl)\
**Post date:** [January 24, 2022, 9:02am UTC](https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214/3 "2022-01-24T09:02:33Z")

</div>

Hi @horigan,

we will close this issue if no any further update. Welcome to create new issues or reopen it if you still meet the issues.

---

<div class="post-metadata">

**Author:** ![mhl](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mhl](https://forums.freertos.org/u/mhl)\
**Post date:** [January 24, 2022, 9:02am UTC](https://forums.freertos.org/t/about-freertos-cellular-library-and-freertos-tcp/14214/4 "2022-01-24T09:02:48Z")

</div>

Closed on January 24, 2022, 9:02am UTC


