Add IoTCoreMQTTMessage to aws/aws-lambda-go/events
Open
enhancement
type/events
- Dominant language
- Go
- Stars
- 3.8k
- Forks
- 578
- Avg merge
- 8h 18m
- Merged PRs (30d)
- 1
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.