Sample MQTT program - simple send and receive

Dependencies:   C12832 MQTT

Dependents:   MQTT_G_SENSOR

Update to mbed OS 5

This pull request updates HelloMQTT to mbed OS 5. No changes to the MQTT library required. It does this by wrapping around the network sockets API introduced in mbed OS 5.

Benefits of running this on top of mbed OS 5:

  • Support for all mbed OS 5 targets, not just LPC1768, K64F and C027.
  • Support for multiple connectivity methods, including Ethernet, WiFi (from 3 vendors) and Cellular. Plus potential IPv6 over Thread and 6LoWPAN.

Memory usage is slightly less than the mbed 2 version of this program. Compiled with GCC_ARM against K64F target and with LCD enabled it uses 59,588 bytes of static RAM vs. 60,192 bytes for mbed 2.

Work in progress MQTT example program on top of mbed OS 5 MQTT