How can I display the date of the value (where I put log(date) ).
Don't find it
Don't find it
Code:
while true do
chunk = data:sub(offset + 1, offset + 8)
if #chunk == 8 then
value = stringtodouble(chunk)
-- skip NaN (empty/undefined value)
if value == value then
values[ #values + 1 ] = string.format('%d %.1f', offset, value)
log(date)
end
else
break
end
offset = offset + 8
end
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT