I'm following this blog and trying to use MQTT client library( http://energia.nu/wordpress/wp-content/uploads/2014/09/PubSubClient.zip ) with my EK-TM4C1294XL launchpad. When I'm trying to use mqtt_basic example which comes with the libary, the program is crashing. When I tried debugging it with CCS, I found that the program is crashing when I PubSubClient->connect is called. Please see the attached screenshot. When I execute the highlighted line in the code( line no 1460 in picture ), the program is crashing and goes to FaultISR() in startup_code.
The problem is when I call client.connect( "adruinoClient" ), it check whether the client is already connected and when it finds that it is not, it calls
_client->stop();( line361) from PubSubClient::connected() in PubSubClient.cpp and crashes.