Michael, I need to use the DeviceString value of a Temp08/mcsTemperature sensor in some HS startup processing. I notice in my log at startup the following:
10/1/2007 5:11:02 PM ~!~mcsTemperature~!~Last temperature sample recorded at 10/1/2007 5:09:34 PM
Right after that I get:
10/1/2007 5:11:07 PM ~!~Startup~!~Scripting is OK
indicating the startup.txt script has started its processing. If I try to use the DeviceString value at that time, am I going to be looking at the "current" sensor reading or the last value prior to shutting down HS?
I guess what I'm hoping is that mcsTemperature will read the current value and make it available during its startup initialization, but it looks like it comes from the dB, saved prior to HS shutdown. If that is the case, what would be the best way to wait until mcsTemperature has had a chance to update the device value after startup to ensure it is current?
Thanks
Gary
10/1/2007 5:11:02 PM ~!~mcsTemperature~!~Last temperature sample recorded at 10/1/2007 5:09:34 PM
Right after that I get:
10/1/2007 5:11:07 PM ~!~Startup~!~Scripting is OK
indicating the startup.txt script has started its processing. If I try to use the DeviceString value at that time, am I going to be looking at the "current" sensor reading or the last value prior to shutting down HS?
I guess what I'm hoping is that mcsTemperature will read the current value and make it available during its startup initialization, but it looks like it comes from the dB, saved prior to HS shutdown. If that is the case, what would be the best way to wait until mcsTemperature has had a chance to update the device value after startup to ensure it is current?
Thanks
Gary
Comment