Arduino-arduino-esp32.zip


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.githubISSUE_TEMPLATE
     文件        1652  2019-09-16 16:54  arduino-esp32-master.githubISSUE_TEMPLATEug_report.md
     文件        2105  2019-09-16 16:54  arduino-esp32-master.githubstale.yml
     目录           0  2019-09-16 16:54  arduino-esp32-master.githubworkflows
     文件       10356  2019-09-16 16:54  arduino-esp32-master.githubworkflowsmain.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-masterCMakeLists.txt
     文件        8998  2019-09-16 16:54  arduino-esp32-masterKconfig.projbuild
     文件       26338  2019-09-16 16:54  arduino-esp32-masterLICENSE.md
     文件         329  2019-09-16 16:54  arduino-esp32-masterMakefile.projbuild
     文件        3415  2019-09-16 16:54  arduino-esp32-masterREADME.md
     文件         784  2019-09-16 16:54  arduino-esp32-masterappveyor.yml
     文件      163102  2019-09-16 16:54  arduino-esp32-masteroards.txt
     文件        1655  2019-09-16 16:54  arduino-esp32-mastercomponent.mk
     目录           0  2019-09-16 16:54  arduino-esp32-mastercores
     目录           0  2019-09-16 16:54  arduino-esp32-mastercoresesp32
     文件        5354  2019-09-16 16:54  arduino-esp32-mastercoresesp32Arduino.h
     文件        1556  2019-09-16 16:54  arduino-esp32-mastercoresesp32Client.h
     文件        7627  2019-09-16 16:54  arduino-esp32-mastercoresesp32Esp.cpp
     文件        3070  2019-09-16 16:54  arduino-esp32-mastercoresesp32Esp.h
     文件         949  2019-09-16 16:54  arduino-esp32-mastercoresesp32FunctionalInterrupt.cpp
     文件         405  2019-09-16 16:54  arduino-esp32-mastercoresesp32FunctionalInterrupt.h
     文件        3199  2019-09-16 16:54  arduino-esp32-mastercoresesp32HardwareSerial.cpp
     文件        3309  2019-09-16 16:54  arduino-esp32-mastercoresesp32HardwareSerial.h
     文件        3107  2019-09-16 16:54  arduino-esp32-mastercoresesp32IPAddress.cpp
     文件        2997  2019-09-16 16:54  arduino-esp32-mastercoresesp32IPAddress.h
     文件        2759  2019-09-16 16:54  arduino-esp32-mastercoresesp32IPv6Address.cpp
............此处省略2399个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)