Extract data from mqtt json payload

This commit is contained in:
2020-08-31 07:01:40 +02:00
parent 985b4e8fde
commit 8f7a285289
2 changed files with 39 additions and 3 deletions

17
models/mo.go Normal file
View 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"`
}