sensor

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttMqttMapper

type MqttMqttMapper interface {
	ToResponse(src *domain.MqttPayload) *MqttPayloadResponse
	ToResponseList(src []*domain.MqttPayload) []*MqttPayloadResponse
	FromResponse(src *MqttPayloadResponse) *domain.MqttPayload
	FromResponseList(src []*MqttPayloadResponse) []*domain.MqttPayload
}

goverter:converter goverter:extend github.com/green-ecolution/backend/internal/utils:TimeToTime

type MqttPayloadResponse

type MqttPayloadResponse struct {
	Device      string              `json:"device"`
	Battery     float64             `json:"battery"`
	Humidity    float64             `json:"humidity"`
	Temperature float64             `json:"temperature"`
	Latitude    float64             `json:"latitude"`
	Longitude   float64             `json:"longitude"`
	Watermarks  []WatermarkResponse `json:"watermarks"`

} // @Name MqttPayload

type WatermarkResponse

type WatermarkResponse struct {
	Resistance int `json:"resistance"`
	Centibar   int `json:"centibar"`
	Depth      int `json:"depth"`

} // @Name Watermark

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL