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

mqtt trigger only outputs mqtt payload #9

Open
masterclock opened this issue Jul 1, 2019 · 2 comments
Open

mqtt trigger only outputs mqtt payload #9

masterclock opened this issue Jul 1, 2019 · 2 comments

Comments

@masterclock
Copy link

as paho mqtt message defined:

type Message interface {
	Duplicate() bool
	Qos() byte
	Retained() bool
	Topic() string
	MessageID() uint16
	Payload() []byte
	Ack()
}

I think its better to output these fields too

@skothari-tibco
Copy link
Contributor

Is there any specific use case you have in mind? The idea behind only sending the Payload of the message is because that is used extensively in subsequent action or flow, compared to other fields.

@masterclock
Copy link
Author

for example, we put deviceId in mqtt topic, the server subscribes to prefix/# for device data, we have to get both topic and payload for all the data.

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

2 participants