Skip to content
New issue

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

Adding a sample command for mqtt samples #1056

Open
Leo6Leo opened this issue May 14, 2024 · 0 comments
Open

Adding a sample command for mqtt samples #1056

Leo6Leo opened this issue May 14, 2024 · 0 comments

Comments

@Leo6Leo
Copy link

Leo6Leo commented May 14, 2024

It is a bit frustrating when I went over the MQTT samples. As there is lack of documentation.

Providing the sample command like the one below would help and save a lot of time.

mosquitto_pub -t 'test-topic' -m '{"specversion" : "1.0","type" :"com.example.someevent","id" : "1234-1234-1234","source" : "/mycontext/subcontext","data":{"msg":"hello world!"}}' -D PUBLISH user-property Content-Type application/cloudevents+json; charset=utf-8

For more context, see the discussion here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant