Documentation ¶
Index ¶
- func AddFileToS3(file []byte, deviceId string) error
- func Payload(w http.ResponseWriter, r *http.Request)
- func Telemetry(w http.ResponseWriter, r *http.Request)
- func TelemetryData(deviceInfo map[string]string, data []byte) error
- func UploadDataToInflux(telementryData map[string]interface{}, userId string, deviceId string) error
- type TelementryData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileToS3 ¶
Types ¶
type TelementryData ¶
type TelementryData struct { RealTimeClock time.Time `json:"real_time_clock"` Temperature float32 `json:"temperature"` Pressure float32 `json:"pressure"` Humidity float32 `json:"humidity"` Accel []float32 `json:"accel"` Gyro []float32 `json:"gyro"` Mag []float32 `json:"mag"` Voltages []float32 `json:"voltages"` }
Click to show internal directories.
Click to hide internal directories.