The X-CUBE-CLD-GEN Expansion Package consists of a set of libraries and application examples for STM32L4 Series, STM32F4 Series, and STM32F7 Series microcontrollers acting as end devices.
X-CUBE-CLD-GEN runs on five platforms. The B-L475E-IOT01A and 32F413HDISCOVERY support Wi-Fi® connectivity with an on-board Inventek ISM43362 module. The 32F769IDISCOVERY board provides a native Ethernet interface. The P-L496G-CELL01 and P-L496G-CELL02 packs, with the 2G/3G Quectel UG96 and LTE Quectel BG96 cellular modem daughterboards respectively, support cellular connectivity.
For the five platforms, the sample applications configure the network connectivity parameters, and illustrate the various ways for a device to interact with the cloud.
An application shows how an MQTT client can connect to an MQTT broker in order to publish data and receive parameter updates or commands from the cloud.
Device authentication through MQTT login and password is supported. TLS encryption, server authentication and device authentication are supported.
The MQTT broker can be a self-administrated server like Eclipse Mosquitto™, or the Ubidots cloud platform.
Other applications also demonstrate how a simple HTTP client can connect to either Exosite, Grovestreams or Ubidots cloud platforms using the HTTP or HTTPS protocol.
The B-L475E-IOT01A board reports telemetry data such as measurement of humidity, temperature, 3-axis magnetic, acceleration, and gyroscope data, atmospheric pressure and distance.