Skip to content

Commit

Permalink
Fix documentation of timestamp field
Browse files Browse the repository at this point in the history
This incorrectly documented that that this was a method, which it is
not.

See #44
  • Loading branch information
matthijskooijman committed Jan 2, 2022
1 parent 490233c commit 776d836
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ integer version returned.
Serial.print(data.power_delivered.int_val());

Additionally there is a `TimestampedFixedValue` method, which works
identically, but additionally has a `timestamp()` method which returns
identically, but additionally has a `timestamp` field which stores
the timestamp sent along with the value.

These timestamps are returned as a string, exactly as present in the P1
message (YYMMDDhhmmssX, where X is S or W for summer- or wintertime).
Parsing these into something like a UNIX timestamp is tricky (think
leap years and seconds) and of limited use, so this just keeps the
original format.
These timestamps are returned as a String object, exactly as present in
the P1 message (YYMMDDhhmmssX, where X is S or W for summer- or
wintertime). Parsing these into something like a UNIX timestamp is
tricky (think leap years and seconds) and of limited use, so this just
keeps the original format.

Connecting the P1 port
----------------------
Expand Down

0 comments on commit 776d836

Please sign in to comment.