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

Add IoTCoreMQTTMessage to aws/aws-lambda-go/events #542

Open
lucamarchiori opened this issue Jan 2, 2024 · 0 comments
Open

Add IoTCoreMQTTMessage to aws/aws-lambda-go/events #542

lucamarchiori opened this issue Jan 2, 2024 · 0 comments
Labels
enhancement type/events issue or feature request related to the events package

Comments

@lucamarchiori
Copy link

lucamarchiori commented Jan 2, 2024

Is your feature request related to a problem? Please describe.
Missing type to handle MQTT messages forwarded by IoTCore

Describe the solution you'd like
Add a new type to /aws/aws-lambda-go/events, for example:

type IoTCoreMQTTMessage struct {
	State    IoTCoreMQTTState `json:"state"`
	Topic    string           `json:"topic"`
	ClientId string           `json:"clientd"`
	// ...
}
type IoTCoreMQTTState struct {
	Reported  map[string]interface{} `json:"reported"`
	// ...
}

Describe alternatives you've considered
The user defines the type by himself

@bmoffatt bmoffatt added type/events issue or feature request related to the events package enhancement labels Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type/events issue or feature request related to the events package
Projects
None yet
Development

No branches or pull requests

2 participants