This example pushes the measured data using HTTP POST request on ThinkSpeak server. Thus, modify the APIKey in thingSpeak.cpp, then compile using:
thingSpeak.cpp
g++ thingSpeak.cpp network/SocketClient.cpp - o thingSpeak ./thingSpeak