daytime: 06:00 to 21:59
This commit is contained in:
parent
f56c90fc13
commit
9e79787a41
|
|
@ -280,7 +280,7 @@ func DecodePayload(s string, deveui string, devaddr string, lrrlat float32, lrrl
|
||||||
|
|
||||||
func IsDayTime() bool {
|
func IsDayTime() bool {
|
||||||
hours, _, _ := time.Now().Clock()
|
hours, _, _ := time.Now().Clock()
|
||||||
return ((hours >= 6) && (hours <= 22))
|
return ((hours >= 6) && (hours < 22))
|
||||||
}
|
}
|
||||||
|
|
||||||
func WriteDatapoint(mytime int64, deveui string, devaddr string, v uint8, h uint8, p uint8, w uint16, w1 int32, w2 int32, t int16, lrrlat float32, lrrlon float32, fw_version int32, w1_0 int32, w2_0 int32, w1_c float32, w2_c float32) {
|
func WriteDatapoint(mytime int64, deveui string, devaddr string, v uint8, h uint8, p uint8, w uint16, w1 int32, w2 int32, t int16, lrrlat float32, lrrlon float32, fw_version int32, w1_0 int32, w2_0 int32, w1_c float32, w2_c float32) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue