Break/Stop loop with MQTT payload/message

You don't know It?


:smiley:

With it i meant the none compiling part.
And i was now looking for 10 minutes on the screen to find out what was wrong.
strncmp instead of strcmp

Ok the output is if i send my commands in that order:

  1. "volume-ups"
    Payload: volume-ups
    Message:
    Output: Run Code

  2. "volume-ups"
    Payload: volume-ups
    Message: volume-ups
    Output: Run Code

  3. "volume-stop"
    Payload: volume-stop
    Message: volume-ups
    Output: Stop Code

  4. "volume-stop"
    Payload: volume-stop
    Message:
    Output: Stop Code

  5. "volume-ups"
    Payload: volume-ups
    Message:

Payload: volume-ups
Message: volume-upsp

So after "volume-stop" the output (code that needs to be running) is empty on "volume-up".
By other words i can't turn the volume up after stopping it before.
Look at 6. after calling "volume-ups" a second time there is a "p" at the end of the message.
Where does that come from?

And before i forged: THANKS for helping.