Hey Lloyd,

I recently had a reason and the opportunity to start updating the Moteino 
code. Still a work in progress, but this is how I am handling the missing 
data issue at restart. (Keep in mind I am not a programmer....)

In the sketch, I set two global boolean variables, gotTempData and 
gotHumidityData, to false. When processing packets, their values will be 
set to true, once the data is received. In the main loop, I restrict 
sending loop packets until that happens, with this:

  if (gotTempData && gotHumidityData)
  { sendLoopPacket();}

I've tried a few restarts and it seems to be doing the trick. Best part is 
that it doesn't require messing with/up the weewx code

HTH.



On Tuesday, February 21, 2017 at 5:05:21 PM UTC-6, Lloyd Brown wrote:
>
> Ok, thanks for replying.  I know that when I am doing something on the Pi 
> I have to write it down step by step in a log and even then it sometimes 
> does not make sense a couple months later when I try to read it.
>
>
>
>>>>>

-- 
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.

Reply via email to