Simplify startup and remove rx,tx channels
parent
a43dfed1b3
commit
9aeb4fb188
@ -1,20 +0,0 @@
|
|||||||
package payload
|
|
||||||
|
|
||||||
// Payload is the first part
|
|
||||||
type Payload struct {
|
|
||||||
Type int16 // sensor type (2, 3, 4, 5)
|
|
||||||
Uptime uint32 // uptime in ms
|
|
||||||
}
|
|
||||||
|
|
||||||
// Payload1 is for DHT22-nodes
|
|
||||||
type Payload1 struct {
|
|
||||||
Temperature float32 // Temp
|
|
||||||
Humidity float32 // Humidity
|
|
||||||
VBat float32 // V Battery
|
|
||||||
}
|
|
||||||
|
|
||||||
// Payload2 is for switches
|
|
||||||
type Payload2 struct {
|
|
||||||
Pin byte // Pin number
|
|
||||||
State byte // 1=On 0=Off
|
|
||||||
}
|
|
Loading…
Reference in New Issue