We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
When my ESP32 want to Publish message: Hello world, In the activity tab on my thing I only see this messege
{ "code": 400, "message": "Payload contains invalid json" }
The text was updated successfully, but these errors were encountered:
probably your message has a problem with json formatting
Sorry, something went wrong.
Yes, I know it but why? I didn't made any changes in the provided example sketch so it should work.
Also using MQTT.fx client i see this messege and i can publish nothing.
Sorry for the late answer, it's sending Hello world 1 as message that isn't JSON formatted
Hello world 1
you can fix it changing this line to snprintf (msg, 75, "{\"Hello world\":\"#%ld\"}", value);
snprintf (msg, 75, "{\"Hello world\":\"#%ld\"}", value);
No branches or pull requests
Hi
When my ESP32 want to Publish message: Hello world, In the activity tab on my thing I only see this messege
{
"code": 400,
"message": "Payload contains invalid json"
}
The text was updated successfully, but these errors were encountered: