3 years, 1 month ago.

bBlox C027: Error: Identifier "TCPSocketConnection" is undefined in "MQTT/MQTTSocket.h"


I am trying to use mbed-os library in my project to create Threads which are defined in rtos.h file. When I compile the project I get the below error "Error: Identifier "TCPSocketConnection" is undefined in "MQTT/MQTTSocket.h", Line: 35, Col: 6".

The source header TCPSocketConnection.h is available in "C027_Support/Socket" path and is included in the project. But I still get the error.

Why I am getting this error?

Regards, Ashoka

Question relating to:

The u-blox-C027 is a complete starter kit that allows quick prototyping of a variety of applications for the Internet of Things. The application board has a MAX-M8Q GPS/GNSS receiver and …

1 Answer

2 years, 10 months ago.

Hi, you might want to try my ported library https://developer.mbed.org/users/pilotak/code/C027_Support/ it works up to OS 5.4, if you want to use newer OS you need to use new library by ublox https://developer.mbed.org/teams/ublox/code/HelloMQTT/ but you will soon run out of RAM (the example fits) because it was primarily written from C030 which has a lot of RAM available.

Accepted Answer