Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily.
This is a slide deck I created while learning how to post data from an Arduino to ThingWorx using MQTT protocol.
This works great and now the second step should be to get the ThingWorx C SDK running. This would eliminate the need of the MQTT broker and is much straight forward