Tommy56:
Ja, früher hat der Compiler es bei einer Warnung belassen, wenn eine Funktion einen Rückgabewert haben sollte, aber keinen hatte.
Ach schau... (6year ago)
*_Sha1 ist das Einzige, was nicht zur V1.2.0 angefasst wurde.
Das könnte das Problem sein.
Wird ein Rückgabewert tatsächlich gebraucht?
Hm... so tief bin ich nicht drin.
Gibt nenn Issue dazu:
opened 12:49AM - 16 Jul 21 UTC
In the "MySQL_Encrypt_Sha1.cpp" file of the "MySQL_Connector_Arduino" library, t… here are two functions:
- size_t Encrypt_SHA1 :: write (uint8_t data) {...}
- size_t Encrypt_SHA1 :: write (uint8_t * data, int length) {...}
according to their definition, they should make a "return" of a value of type "size_t" but neither one has a "return" which causes in my Windows 10 environment an exception.
To be able to use this library, I added to these functions a "return -1;"
Is it possible to correct this problem.
Thank you