Skip to content

Commit

Permalink
Update MAGELLAN_MEDIA_FILE.cpp
Browse files Browse the repository at this point in the history
fix env lib MEDIA FILE not support some function on esp8266
  • Loading branch information
AIS-DeviceIntegration authored Jul 5, 2023
1 parent c05095f commit 32d5b82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/MAGELLAN_MEDIA_FILE.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <Arduino.h>
#include <MAGELLAN_MEDIA_FILE.h>

#if defined(ESP8266)
//not support
#elif defined(ESP32)
const char *enumToString(mediaTypeEnum mediatype)
{
switch (mediatype)
Expand Down Expand Up @@ -483,4 +485,5 @@ String MAGELLAN_MEDIA_FILE::toBase64MimeTypeString(uint8_t *binaryData, size_t s
String rawB64 = BIHandle(binaryData, sizeBinaryData);
String b64Mime = "data:"+mediatypeStr+"/"+subtype+";base64," + rawB64;
return b64Mime;
}
}
#endif

0 comments on commit 32d5b82

Please sign in to comment.