WiFi-Passwort now generated internally and device-specific
This commit is contained in:
@@ -33,4 +33,16 @@ bool validateWiFiString(char *string, size_t size);
|
||||
*/
|
||||
void sanitizeWiFiString(const char *input, char *buffer, size_t bufferSize);
|
||||
|
||||
/**
|
||||
* @brief Generates a device-specific password based on a seed and the ESP8266 Chip ID.
|
||||
*
|
||||
* This function combines a given seed with the unique Chip ID of the ESP8266 device to create a device-specific password.
|
||||
* The resulting password is stored in the provided character buffer.
|
||||
*
|
||||
* @param seed The seed string used for password generation. Should be up to 16 characters long.
|
||||
* @param passwordBuffer The character buffer where the generated password will be stored.
|
||||
* @param bufferLength The length of the password buffer. Should be large enough to hold the generated password and null terminator.
|
||||
*/
|
||||
void GenerateDeviceSpecificPassword(const char* seed, char* passwordBuffer, size_t bufferLength);
|
||||
|
||||
#endif // UTILITIES_H
|
||||
|
Reference in New Issue
Block a user