diff options
| author | Jean-François Milants <jf@codingfield.com> | 2024-01-02 12:27:16 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-01-04 13:00:01 +0100 |
| commit | b4ff1f9ca24fa7ca7d89000cbd1402d120b0054e (patch) | |
| tree | 353808990a7904f3742055208967e656870d9a3b /doc | |
| parent | 9b36afc7878e05e7d37ba48b77f7bc95c44c6ee6 (diff) | |
Simple Weather Service : Fix timestamp
In the documentation, specify that the timestamp is expressed in seconds from epoch (instead of nanoseconds).
SimpleWeatherService now uses "localtime" (GetCurrentDateTime()) instead of UTC time.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/SimpleWeatherService.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/SimpleWeatherService.md b/doc/SimpleWeatherService.md index 9ff195e6..f8e41c34 100644 --- a/doc/SimpleWeatherService.md +++ b/doc/SimpleWeatherService.md @@ -28,7 +28,7 @@ The byte array must contain the following data: - [0] : Message type = `0` - [1] : Message version = `0` - - [2][3][4][5][6][7][8][9] : Timestamp (64 bits UNIX timestamp, number of nanoseconds elapsed since 1 JAN 1970) + - [2][3][4][5][6][7][8][9] : Timestamp (64 bits UNIX timestamp, number of seconds elapsed since 1 JAN 1970) - [10, 11] : Current temperature (°C * 100) - [12, 13] : Minimum temperature (°C * 100) - [14, 15] : Maximum temperature (°C * 100) @@ -50,7 +50,7 @@ The byte array must contain the following data: - [0] : Message type = `1` - [1] : Message version = `0` - - [2][3][4][5][6][7][8][9] : Timestamp (64 bits UNIX timestamp, number of nanoseconds elapsed since 1 JAN 1970) + - [2][3][4][5][6][7][8][9] : Timestamp (64 bits UNIX timestamp, number of seconds elapsed since 1 JAN 1970) - [10] Number of days (Max 5, fields for unused days should be set to `0`) - [11,12] Day 0 Minimum temperature (°C * 100) - [13,14] Day 0 Maximum temperature (°C * 100) |
