Skip to content

Commit

Permalink
Update AsyncWebSocket.cpp
Browse files Browse the repository at this point in the history
#include esp8266 fix
  • Loading branch information
cotestatnt authored Jun 7, 2024
1 parent 8ca4d6c commit da4c556
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/ESPAsyncWebServer/src/AsyncWebSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@
*/
#include "Arduino.h"
#include "AsyncWebSocket.h"

#include <libb64/cencode.h>

// #ifndef ESP8266
// #include "mbedtls/sha1.h"
// #else
// #include <Hash.h>
// #endif

#ifdef ESP8266
#include "mbedtls/sha1.h"
#else
#if ESP_ARDUINO_VERSION_MAJOR > 2
#include "SHA1Builder.h"
#else
#include <Hash.h>
#endif
#ifdef ESP8266
#include <Hash.h>
#else
#if ESP_ARDUINO_VERSION_MAJOR > 2
#include "SHA1Builder.h"
#else
#include "mbedtls/sha1.h"
#endif
#endif

#define MAX_PRINTF_LEN 64
Expand Down

0 comments on commit da4c556

Please sign in to comment.