AAGGHH - this is what happens when you try to refactor your code and forget about variable scoping. The 'network_retry_count' variable IS set (with the line you added) in line 493 which is right at the start of the 'getLoopPackets' function. The next part of the process is to use the 'self.connectToWeatherStation()' function which originally only existed where the function call is located. However when I added the functionality to read the history data, I needed to connect to the weather station from several places and so I moved the code into a separate function. Of course that is when I forgot about the scope of the variable!!!!! It also shows that my network is fairly reliable as I've obviously never triggered that error condition in my testing. My apologies for the bugs and my thanks for helping me find them. I'll update my repository tonight (hopefully). Susan
-- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
