資源簡介
Arduino-arduino-esp32.zip,用于ESP32的Arduino Core用于ESP32 WiFi芯片,Arduino是一家開源軟硬件公司和制造商社區。Arduino始于21世紀初,深受電子制造商的歡迎,Arduino通過開源系統提供了很多靈活性。
代碼片段和文件信息
/**
?*?base64.cpp
?*
?*?Created?on:?09.12.2015
?*
?*?Copyright?(c)?2015?Markus?Sattler.?All?rights?reserved.
?*?This?file?is?part?of?the?ESP31B?core?for?Arduino.
?*
?*?This?library?is?free?software;?you?can?redistribute?it?and/or
?*?modify?it?under?the?terms?of?the?GNU?Lesser?General?Public
?*?License?as?published?by?the?Free?Software?Foundation;?either
?*?version?2.1?of?the?License?or?(at?your?option)?any?later?version.
?*
?*?This?library?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the?GNU
?*?Lesser?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?Lesser?General?Public
?*?License?along?with?this?library;?if?not?write?to?the?Free?Software
?*?Foundation?Inc.?51?Franklin?St?Fifth?Floor?Boston?MA??02110-1301??USA
?*
?*/
#include?“Arduino.h“
extern?“C“?{
#include?“libb64/cdecode.h“
#include?“libb64/cencode.h“
}
#include?“base64.h“
/**
?*?convert?input?data?to?base64
?*?@param?data?uint8_t?*
?*?@param?length?size_t
?*?@return?String
?*/
String?base64::encode(uint8_t?*?data?size_t?length)
{
????size_t?size?=?base64_encode_expected_len(length)?+?1;
????char?*?buffer?=?(char?*)?malloc(size);
????if(buffer)?{
????????base64_encodestate?_state;
????????base64_init_encodestate(&_state);
????????int?len?=?base64_encode_block((const?char?*)?&data[0]?length?&buffer[0]?&_state);
????????len?=?base64_encode_blockend((buffer?+?len)?&_state);
????????String?base64?=?String(buffer);
????????free(buffer);
????????return?base64;
????}
????return?String(“-FAIL-“);
}
/**
?*?convert?input?data?to?base64
?*?@param?text?String
?*?@return?String
?*/
String?base64::encode(String?text)
{
????return?base64::encode((uint8_t?*)?text.c_str()?text.length());
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\.github\
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\.github\ISSUE_TEMPLATE\
?????文件????????1652??2019-09-16?16:54??arduino-esp32-master\.github\ISSUE_TEMPLATE\bug_report.md
?????文件????????2105??2019-09-16?16:54??arduino-esp32-master\.github\stale.yml
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\.github\workflows\
?????文件???????10356??2019-09-16?16:54??arduino-esp32-master\.github\workflows\main.yml
?????文件?????????226??2019-09-16?16:54??arduino-esp32-master\.gitignore
?????文件?????????117??2019-09-16?16:54??arduino-esp32-master\.gitmodules
?????文件????????2773??2019-09-16?16:54??arduino-esp32-master\.travis.yml
?????文件????????8232??2019-09-16?16:54??arduino-esp32-master\CMakeLists.txt
?????文件????????8998??2019-09-16?16:54??arduino-esp32-master\Kconfig.projbuild
?????文件???????26338??2019-09-16?16:54??arduino-esp32-master\LICENSE.md
?????文件?????????329??2019-09-16?16:54??arduino-esp32-master\Makefile.projbuild
?????文件????????3415??2019-09-16?16:54??arduino-esp32-master\README.md
?????文件?????????784??2019-09-16?16:54??arduino-esp32-master\appveyor.yml
?????文件??????163102??2019-09-16?16:54??arduino-esp32-master\boards.txt
?????文件????????1655??2019-09-16?16:54??arduino-esp32-master\component.mk
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\cores\
?????目錄???????????0??2019-09-16?16:54??arduino-esp32-master\cores\esp32\
?????文件????????5354??2019-09-16?16:54??arduino-esp32-master\cores\esp32\Arduino.h
?????文件????????1556??2019-09-16?16:54??arduino-esp32-master\cores\esp32\Client.h
?????文件????????7627??2019-09-16?16:54??arduino-esp32-master\cores\esp32\Esp.cpp
?????文件????????3070??2019-09-16?16:54??arduino-esp32-master\cores\esp32\Esp.h
?????文件?????????949??2019-09-16?16:54??arduino-esp32-master\cores\esp32\FunctionalInterrupt.cpp
?????文件?????????405??2019-09-16?16:54??arduino-esp32-master\cores\esp32\FunctionalInterrupt.h
?????文件????????3199??2019-09-16?16:54??arduino-esp32-master\cores\esp32\HardwareSerial.cpp
?????文件????????3309??2019-09-16?16:54??arduino-esp32-master\cores\esp32\HardwareSerial.h
?????文件????????3107??2019-09-16?16:54??arduino-esp32-master\cores\esp32\IPAddress.cpp
?????文件????????2997??2019-09-16?16:54??arduino-esp32-master\cores\esp32\IPAddress.h
?????文件????????2759??2019-09-16?16:54??arduino-esp32-master\cores\esp32\IPv6Address.cpp
............此處省略2399個文件信息
評論
共有 條評論