Skip to main content
MZina.1
Associate
March 5, 2026
Question

ST87M01 mqtt topic and message

  • March 5, 2026
  • 1 reply
  • 151 views

On ST87M01 current version 2.7.0 I suspect that everything that goes in module via "AT" interface passes through filter which removes spaces and sets everything lowercase. This is OK for AT commands, but it mingles with user data that is passed, for example topic and message in mqttpub command, which is unexpected behavior. For example:

at#mqttpub=Topic1,This is a test

expected topic is "Topic1" but you get "topic1"

expected message is "This is a test" but you get "thisisatest".

1 reply

Andrea Cucchi
Visitor II
April 1, 2026

Hi Mzina.1,

to avoid that, you can put the parameter string between double quotes ("") or quote ('').  So, in your case, simply:

AT#MQTTPUB= "Topic 1", "This is a test"

or 

AT#MQTTPUB= 'Topic 1', 'This is a test'

 

In this way you can insert any space, commas and quotes withing your string.

 

I hope this may help you.

 

Bye

Andrea