Only go in runs of 50?
This commit is contained in:
parent
619e4409e1
commit
d198f61ea9
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -141,7 +141,8 @@ func readRegs(client modbus.Client, start, qty uint16) {
|
||||||
func scrape(client modbus.Client) {
|
func scrape(client modbus.Client) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
scrapeStart.SetToCurrentTime()
|
scrapeStart.SetToCurrentTime()
|
||||||
readRegs(client, 5000, 100)
|
readRegs(client, 5000, 50)
|
||||||
|
readRegs(client, 5050, 50)
|
||||||
readRegs(client, 5100, 50)
|
readRegs(client, 5100, 50)
|
||||||
scrapeEnd.SetToCurrentTime()
|
scrapeEnd.SetToCurrentTime()
|
||||||
lastScrape = time.Now()
|
lastScrape = time.Now()
|
||||||
|
|
Loading…
Reference in a new issue