17

The controller in question is an STM32F030K6T6, which has an ARM® 32-bit Cortex® -M0 low power core, 32 kB Flash memory and 4 kB SRAM. It interfaces an SIM808 for Internet connectivity.

The resources are quite limited regarding the memory.

  • Is it possible to implement MQTT on this device?

  • What requirements should a microcontroller match to be able to use/run MQTT?

(I am not asking about a complete protocol stack implementation.)

Bence Kaulics
  • 7,843
  • 8
  • 42
  • 90

2 Answers2

12

Is it possible to implement MQTT on this device?

Any device that has TCP/IP layer can implement MQTT.

What requirements should a microcontroller match to be able to use/run MQTT?

You need to ask the following questions to know whether your device runs MQTT.

  • Is my device having TCP/IP or networking support?
  • Is there some memory and disk space available on device?
  • Is a ready made MQTT client that can used on the device platform?
  • Is there a network connectivity to the server?

Ref: MQTT Support

bravokeyl
  • 1,550
  • 1
  • 13
  • 27
11

The mbed mmqt library doesn't seem to document any memory requirements as likely to be limiting, and can reasonably be assumed to be targetted at this sort of small-footprint device as an endpoint. You could fairly trivially import the library into a similar device platform using the online compiler and check the code footprint at least.

Sean Houlihane
  • 10,524
  • 2
  • 26
  • 62