Different hash result in different versions #17439
Unanswered
MrTinkerman
asked this question in
ESP32
Replies: 2 comments 4 replies
-
Not sure if relevant, but ESP32 changed from Ordered dict to dict .... after v1.20 I think |
Beta Was this translation helpful? Give feedback.
2 replies
-
In Python,
Both modules are available in the standard ESP32 MicroPython images. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on code that calculates checksums for dictionaries. Since dicts are unordered I'm calculating the sum of hashes for the items (key-value pairs) in the dict as follows:
This seemed to work fine until I started working on ESPnow between two boards, checksum errors...
Then I noticed the two boards have different Micropython versions.
I haven't flashed the boards with the same version yet, I guess that should resolve my issue.
But I'm curious about why this happens or if there's something else I'm missing.
Thanks.
EDIT:
I just flashed both boards to the same version and this version also produces different results from the other versions.
But hey, now both boards produce the same checksum.
But I'm still curious about why this happens.
Beta Was this translation helpful? Give feedback.
All reactions