Extract data from mqtt json payload
This commit is contained in:
17
models/mo.go
Normal file
17
models/mo.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
type Mo struct {
|
||||
ID MoID `json:"id"`
|
||||
MO MoMO `json:"mo"`
|
||||
}
|
||||
|
||||
type MoID struct {
|
||||
PTU4_MAC string
|
||||
PTU4_SN string
|
||||
}
|
||||
|
||||
type MoMO struct {
|
||||
Action string `json:"action"`
|
||||
Description string `json:"description"`
|
||||
Number string `json:"number"`
|
||||
}
|
Reference in New Issue
Block a user