Closed ClaesClaes closed 3 years ago
Not much time this week to dive into this.
Things I would check
Would start with a simple test - just a single char "a", extend it and see when it breaks.
No worries, thanks for the tip. Integers fitting in one byte produce the same crc results. So good first step. I have no special characters in the files (json) but could be something with the UTF encoding. I'll look in that direction. Thanks again.
Well, turns out both libraries spits out the exact same crc... It was my mistake. In the iOS application I add the crc number to the json file at the time of transmission to the ESP32 (my first verification architecture approach) but not the copy stored in iOS. So the two files could never be the same and obviously with different crc outcomes. Apologies for taking up your time.
No problem, on contrary. It is good to have another real live test that the lib is working and doing what it supposed to do. Thanks
HI, I'm experimenting with your library using CRC16 to compare if json files on an ESP32 and on an iPhone are the same. I have an iOS app that sends json files to an ESP32 which needs to stay in sync. I'm getting divergent CRC results between your lib and the lib I use in the iOS app.
The polynomial are the same (0x1021) in both libs and I'm setting the BigEndianIn (true or false) option to match the same option in the iOS lib. Any ideas what I could be doing wrong, or a tip on how I can troubleshoot this?
ESP32 code:
Swift code: Usage:
Class: