element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum EthernetClientSecure.h library support for ESP32
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 383 subscribers
  • Views 2273 views
  • Users 0 members are here
  • esp32
  • https
  • client
  • ethernet
  • secure
Related

EthernetClientSecure.h library support for ESP32

KKaushik
KKaushik over 1 year ago

I'm trying to connect to server using Ethernet (ENC28j60 module) on ESP32. (Using Arduino IDE)

It requires to setCA() as below code for WifiClientSecure.h support for Wifi, but is there a way to do same with Ethernet.

#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <HTTPClient.h>

const char* WiFI_SSID = "WIFI_SSID";
const char* WIFI_PASS = "WIFI_PASS";

char server[] = "https://www.server.com";


const char* rootCA =
  "-----BEGIN CERTIFICATE-----\n"
  
  "-----END CERTIFICATE-----\n";

void setup() {
  Serial.begin(9600);

  WiFi.mode(WIFI_STA);
  WiFi.begin(WiFI_SSID, WIFI_PASS);
  Serial.print("Connecting to WiFi ..");
  while (WiFi.status() != WL_CONNECTED)
  {
    Serial.print('.');
    delay(500);
  }

  Serial.println(WiFi.localIP());

}

void loop() {
  if ((WiFi.status() == WL_CONNECTED))
  {
    WiFiClientSecure client;

    client.setCACert(rootCA);
    HTTPClient https;

    Serial.print("[HTTPS] begin...\n");
    if (https.begin(client, server))
    {

      Serial.print("Connected Successfully");

    }
  }
  else
  {
    Serial.printf("Not Connected to WiFi\n");
  }
  
}



  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 1 year ago +4
    Hi, The SetCA.. function is a member function of that WiFiClientSecure, it's got nothing to do with Ethernet, even though you may wish it to be similar. So, you'll have to look for a ENC28J60 compatible…
  • BigG
    BigG over 1 year ago in reply to KKaushik +1
    You did get a successful connection and it took 648 millis. It then tried a GET function, which failed with a 404 error code (usually means something could not be found).
  • JWx
    JWx over 1 year ago in reply to BigG +1
    it seems that program is trying to get (line 102 of Ethernet_HTTPS.ino): https://www.arduino.cc//asciilogo.txt which doesn't exists
Parents
  • shabaz
    shabaz over 1 year ago

    Hi,

    The SetCA.. function is a member function of that WiFiClientSecure, it's got nothing to do with Ethernet, even though you may wish it to be similar. 

    So, you'll have to look for a ENC28J60 compatible library, and the functionality may be implemented with completely different methods.

    If you google "https ENC28J60 ESP32" you'll find some blogs, some of them have plausible code, but most of them have a ton of ads too, so, personally I'm not going to link to them, but as mentioned a google search with those search terms will find you what you need.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 1 year ago

    Hi,

    The SetCA.. function is a member function of that WiFiClientSecure, it's got nothing to do with Ethernet, even though you may wish it to be similar. 

    So, you'll have to look for a ENC28J60 compatible library, and the functionality may be implemented with completely different methods.

    If you google "https ENC28J60 ESP32" you'll find some blogs, some of them have plausible code, but most of them have a ton of ads too, so, personally I'm not going to link to them, but as mentioned a google search with those search terms will find you what you need.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Children
  • KKaushik
    KKaushik over 1 year ago in reply to shabaz

    I have tried some suggestion with SSL client with ENC28J60 Module and W5550 Module

    Ethernet_HTTPS.ino

    /*
      Web client
    
     This sketch connects to a website (http://www.arduino.cc/asciilogo.txt)
     using an Arduino Wiznet Ethernet shield.
    
     Circuit:
     * Ethernet shield attached to pins 10, 11, 12, 13
    
     created 18 Dec 2009
     by David A. Mellis
     modified 9 Apr 2012
     by Noah Koontz, based on work by Adrian McEwen and Tom Igoe
    
     */
    
      // NOTE: This example REQUIRES the EthernetLarge library.
      // You can get it here: https://github.com/OPEnSLab-OSU/EthernetLarge
    
    #include <SPI.h>
    #include <EthernetLarge.h>
    #include <SSLClient.h>
    #include "cert.h"
    
    // Enter a MAC address for your controller below.
    // Newer Ethernet shields have a MAC address printed on a sticker on the shield
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
    
    // if you don't want to use DNS (and reduce your sketch size)
    // use the numeric IP instead of the name for the server:
    //IPAddress server(54,85,55,79);  // numeric IP for Google (no DNS)
    const char server[] = "www.arduino.cc";    // name address for Arduino (using DNS)
    const char server_host[] = "www.arduino.cc"; // leave this alone, change only above two
    
    // Set the static IP address to use if the DHCP fails to assign
    IPAddress ip(192, 168, 0, 177);
    IPAddress myDns(8, 8, 8, 8);
    
    // Choose the analog pin to get semi-random data from for SSL
    // Pick a pin that's not connected or attached to a randomish voltage source
    const int rand_pin = 32;
    
    // Initialize the SSL client library
    // We input an EthernetClient, our trust anchors, and the analog pin
    EthernetClient base_client;
    SSLClient client(base_client, TAs, (size_t)TAs_NUM, rand_pin);
    // Variables to measure the speed
    unsigned long beginMicros, endMicros;
    unsigned long byteCount = 0;
    bool printWebData = true;  // set to false for better speed measurement
    
    void setup() {
      // You can use Ethernet.init(pin) to configure the CS pin
      Ethernet.init(5);  // Most Arduino shields
      //Ethernet.init(5);   // MKR ETH shield
      //Ethernet.init(0);   // Teensy 2.0
      //Ethernet.init(20);  // Teensy++ 2.0
      //Ethernet.init(15);  // ESP8266 with Adafruit Featherwing Ethernet
      //Ethernet.init(33);  // ESP32 with Adafruit Featherwing Ethernet
    
      // Open serial communications and wait for port to open:
      Serial.begin(115200);
      while (!Serial) {
        ; // wait for serial port to connect. Needed for native USB port only
      }
      
      // start the Ethernet connection:
      Serial.println("Initialize Ethernet with DHCP:");
      if (Ethernet.begin(mac) == 0) {
        Serial.println("Failed to configure Ethernet using DHCP");
        // Check for Ethernet hardware present
        if (Ethernet.hardwareStatus() == EthernetNoHardware) {
          Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
          while (true) {
            delay(1); // do nothing, no point running without Ethernet hardware
          }
        }
        if (Ethernet.linkStatus() == LinkOFF) {
          Serial.println("Ethernet cable is not connected.");
        }
        // try to configure using IP address instead of DHCP:
        Ethernet.begin(mac, ip, myDns);
      } else {
        Serial.print("  DHCP assigned IP ");
        Serial.println(Ethernet.localIP());
      }
      // give the Ethernet shield a second to initialize:
      delay(2000);
      
      Serial.print("connecting to ");
      Serial.print(server);
      Serial.println("...");
    
      // if you get a connection, report back via serial:
      auto start = millis();
      // specify the server and port, 443 is the standard port for HTTPS
      if (client.connect(server, 443)) {
        auto time = millis() - start;
        Serial.print("Took: ");
        Serial.println(time);
        // Make a HTTP request:
        client.println("GET /asciilogo.txt HTTP/1.1");
        client.println("User-Agent: SSLClientOverEthernet");
        client.print("Host: ");
        client.println(server_host);
        client.println("Connection: close");
        client.println();
      } else {
        // if you didn't get a connection to the server:
        Serial.println("connection failed");
      }
      beginMicros = micros();
    }
    
    void loop() {
      // if there are incoming bytes available
      // from the server, read them and print them:
      int len = client.available();
      if (len > 0) {
        byte buffer[80];
        if (len > 80) len = 80;
        client.read(buffer, len);
        if (printWebData) {
          Serial.write(buffer, len); // show in the serial monitor (slows some boards)
        }
        byteCount = byteCount + len;
      }
    
      // if the server's disconnected, stop the client:
      if (!client.connected()) {
        endMicros = micros();
        Serial.println();
        Serial.println("disconnecting.");
        client.stop();
        Serial.print("Received ");
        Serial.print(byteCount);
        Serial.print(" bytes in ");
        float seconds = (float)(endMicros - beginMicros) / 1000000.0;
        Serial.print(seconds, 4);
        float rate = (float)byteCount / seconds / 1000.0;
        Serial.print(", rate = ");
        Serial.print(rate);
        Serial.print(" kbytes/second");
        Serial.println();
    
        // do nothing forevermore:
        while (true) {
          delay(1);
        }
      }
    }


    cert.h
    #ifndef _CERTIFICATES_H_
    #define _CERTIFICATES_H_
    
    #ifdef __cplusplus
    extern "C"
    {
    #endif
    
    /* This file is auto-generated by the pycert_bearssl tool.  Do not change it manually.
     * Certificates are BearSSL br_x509_trust_anchor format.  Included certs:
     *
     * Index:    0
     * Label:    Baltimore CyberTrust Root
     * Subject:  C=IE,O=Baltimore,OU=CyberTrust,CN=Baltimore CyberTrust Root
     * Domain(s): www.arduino.cc
     */
    
    #define TAs_NUM 1
    
    static const unsigned char TA_DN0[] = {
        0x30, 0x5a, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
        0x02, 0x49, 0x45, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x0a,
        0x13, 0x09, 0x42, 0x61, 0x6c, 0x74, 0x69, 0x6d, 0x6f, 0x72, 0x65, 0x31,
        0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x0a, 0x43, 0x79,
        0x62, 0x65, 0x72, 0x54, 0x72, 0x75, 0x73, 0x74, 0x31, 0x22, 0x30, 0x20,
        0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x19, 0x42, 0x61, 0x6c, 0x74, 0x69,
        0x6d, 0x6f, 0x72, 0x65, 0x20, 0x43, 0x79, 0x62, 0x65, 0x72, 0x54, 0x72,
        0x75, 0x73, 0x74, 0x20, 0x52, 0x6f, 0x6f, 0x74,
    };
    
    static const unsigned char TA_RSA_N0[] = {
        0xa3, 0x04, 0xbb, 0x22, 0xab, 0x98, 0x3d, 0x57, 0xe8, 0x26, 0x72, 0x9a,
        0xb5, 0x79, 0xd4, 0x29, 0xe2, 0xe1, 0xe8, 0x95, 0x80, 0xb1, 0xb0, 0xe3,
        0x5b, 0x8e, 0x2b, 0x29, 0x9a, 0x64, 0xdf, 0xa1, 0x5d, 0xed, 0xb0, 0x09,
        0x05, 0x6d, 0xdb, 0x28, 0x2e, 0xce, 0x62, 0xa2, 0x62, 0xfe, 0xb4, 0x88,
        0xda, 0x12, 0xeb, 0x38, 0xeb, 0x21, 0x9d, 0xc0, 0x41, 0x2b, 0x01, 0x52,
        0x7b, 0x88, 0x77, 0xd3, 0x1c, 0x8f, 0xc7, 0xba, 0xb9, 0x88, 0xb5, 0x6a,
        0x09, 0xe7, 0x73, 0xe8, 0x11, 0x40, 0xa7, 0xd1, 0xcc, 0xca, 0x62, 0x8d,
        0x2d, 0xe5, 0x8f, 0x0b, 0xa6, 0x50, 0xd2, 0xa8, 0x50, 0xc3, 0x28, 0xea,
        0xf5, 0xab, 0x25, 0x87, 0x8a, 0x9a, 0x96, 0x1c, 0xa9, 0x67, 0xb8, 0x3f,
        0x0c, 0xd5, 0xf7, 0xf9, 0x52, 0x13, 0x2f, 0xc2, 0x1b, 0xd5, 0x70, 0x70,
        0xf0, 0x8f, 0xc0, 0x12, 0xca, 0x06, 0xcb, 0x9a, 0xe1, 0xd9, 0xca, 0x33,
        0x7a, 0x77, 0xd6, 0xf8, 0xec, 0xb9, 0xf1, 0x68, 0x44, 0x42, 0x48, 0x13,
        0xd2, 0xc0, 0xc2, 0xa4, 0xae, 0x5e, 0x60, 0xfe, 0xb6, 0xa6, 0x05, 0xfc,
        0xb4, 0xdd, 0x07, 0x59, 0x02, 0xd4, 0x59, 0x18, 0x98, 0x63, 0xf5, 0xa5,
        0x63, 0xe0, 0x90, 0x0c, 0x7d, 0x5d, 0xb2, 0x06, 0x7a, 0xf3, 0x85, 0xea,
        0xeb, 0xd4, 0x03, 0xae, 0x5e, 0x84, 0x3e, 0x5f, 0xff, 0x15, 0xed, 0x69,
        0xbc, 0xf9, 0x39, 0x36, 0x72, 0x75, 0xcf, 0x77, 0x52, 0x4d, 0xf3, 0xc9,
        0x90, 0x2c, 0xb9, 0x3d, 0xe5, 0xc9, 0x23, 0x53, 0x3f, 0x1f, 0x24, 0x98,
        0x21, 0x5c, 0x07, 0x99, 0x29, 0xbd, 0xc6, 0x3a, 0xec, 0xe7, 0x6e, 0x86,
        0x3a, 0x6b, 0x97, 0x74, 0x63, 0x33, 0xbd, 0x68, 0x18, 0x31, 0xf0, 0x78,
        0x8d, 0x76, 0xbf, 0xfc, 0x9e, 0x8e, 0x5d, 0x2a, 0x86, 0xa7, 0x4d, 0x90,
        0xdc, 0x27, 0x1a, 0x39,
    };
    
    static const unsigned char TA_RSA_E0[] = {
        0x01, 0x00, 0x01,
    };
    
    static const br_x509_trust_anchor TAs[] = {
        {
            { (unsigned char *)TA_DN0, sizeof TA_DN0 },
            BR_X509_TA_CA,
            {
                BR_KEYTYPE_RSA,
                { .rsa = {
                    (unsigned char *)TA_RSA_N0, sizeof TA_RSA_N0,
                    (unsigned char *)TA_RSA_E0, sizeof TA_RSA_E0,
                } }
            }
        },
    };
    
    #ifdef __cplusplus
    } /* extern "C" */
    #endif
    
    #endif /* ifndef _CERTIFICATES_H_ */


    Still not getting successful connection.
    DHCP assigned IP 192.168.1.22
    connecting to www.arduino.cc...
    Took: 648
    HTTP/1.1 404 Not Found
    Date: Mon, 06 Nov 2023 18:26:40 GMT
    Content-Type: text/html
    Transfer-Encoding: chunked
    Connection: close
    Last-Modified: Mon, 06 Nov 2023 00:15:12 GMT
    x-amz-server-side-encryption: AES256
    x-amz-version-id: lX3PvRTQaz28ESxNc5cOdc0iiHeaPsCN
    ETag: W/"799a726648b97cbd19ebf87355d1dcb9"
    Via: 1.1 506384681faf799856202b309eeb7796.cloudfront.net (CloudFront), 1.1 b0f8455cc4557d0eb768236b7fae9c06.cloudfront.net (CloudFront)
    X-Amz-Cf-Pop: PNQ50-P4
    X-Amz-Cf-Pop: DEL54-P3
    Vary: Accept-Encoding
    X-Cache: Error from cloudfront
    X-Amz-Cf-Id: u9sEGaDGMgl-GMbxYAQsXn19Q7mZMTmlZw8aaNO5ZPloWABNF5QWMw==
    CF-Cache-Status: DYNAMIC
    Set-Cookie: __cf_bm=j_nNou8ofqM23kurH7SMO8ezDdHQvZV87cBnOXugJwE-1699381600-0-AWJr990zHIKPsoa/6WGx6P1pyhA9+Sy0c+yquolBGcadZBn8G3NtVURWKNemTP7mMckvHovw4YRQ9xO6AGhtSMk=; path=/; expires=Tue, 07-Nov-23 18:56:40 GMT; domain=.arduino.cc; HttpOnly; Secure; SameSite=None
    Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
    Server: cloudflare
    CF-RAY: 8227a02ff8cdecb1-DEL
    alt-svc: h3=":443"; ma=86400
    
    1588
    <!doctype html><html lang="en-US"><head><script>window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pageMetaData",page:{type:"home",title:"Arduino",path:window.location.pathname,environment:"prod",region:"global",brand:"arduino",language:"EN"}})</script><script>!function(e,t,a,n,g){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],_=t.createElement(a);_.async=!0,_.src="https://www.googletagmanager.com/gtm.js?id=GTM-NK2TW8L&gtm_auth=H-ItcuNVhUEYsNQhXxT-vg&gtm_preview=env-2&gtm_cookies_win=x",m.parentNode.insertBefore(_,m)}(window,document,"script","dataLayer")</script><script>!function(){var r=window.analytics=window.analytics||[];if(!r.initialize)if(r.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{r.invoked=!0,r.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],r.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(t),r.push(e),r}};for(var e=0;e<r.methods.length;e++){var t=r.methods[e];r[t]=r.factory(t)}r.load=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://evs.aayinltcs.arduino.cc/5yy37B6M2UBwaTzKNi37Ls/qUh2Pce5EsyeGTFGda1mDz.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a),r._loadOptions=t},r._writeKey="Mjvf0GrvmQYNDH0GfIhND5e8aGFynScR",r._cdn="https://evs.aayinltcs.arduino.cc",r.SNIPPET_VERSION="4.15.3",r.load("Mjvf0GrvmQYNDH0GfIhND5e8aGFynScR")}}()</script><link rel="icon" href="favicon.ico"><meta name="description" content="Open-source electronic prototyping platform enabling users to create interactive electronic objects."><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#00979d"><meta charset="UTF-8"><link rel="stylesheet" href="https://cdn.arduino.cc/header-footer/prod/index.v2.css"><link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,600;0,700;1,400&display=swap" rel="stylesheet"/><script src="https://cdn.arduino.cc/header-footer/prod/index.v2.js"></script><title>Arduino - Home</title><link href="/static/css/main.f24ae171.chunk.css" rel="stylesheet"></head><body><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NK2TW8L" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="header" class="temporary"></div><div id="root"></div><div id="footer"></div><script type="text/javascript">window.auth=new arduinoHF.Auth0({domain:"login.arduino.cc",client_id:"30sUI1PHsoXzwJ9KiDqYIdMmIjsqxiHX",redirect_uri:"https://www.arduino.cc",audience:"https://api.arduino.cc",scope:"openid profile",skipAutoLogin:!0,cacheLocation:"localstorage"}),window.auth.handleAuthentication();var header=new window.arduinoHF.Header(document.getElementById("header"),window.auth,{env:"prod",state:"no-redirect",style:"arduino"});header.init().then(function(){window.auth.getProfile().then(function(e){window.dataLayer.push({event:"userIdAvailable",user:{id:e["http://arduino.cc/id"]}})})});var footer=new window.arduinoHF.Footer(document.getElementById("footer"),{env:"prod",style:"arduino"})</script><script type="text/javascript">var arduinoAdvOptions={breakpointDesktop:1024,breakpointMobile:420,zoneIdDesktop:556,zoneIdTablet:558,zoneIdMobile:557}</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.8/postscribe.min.js"></script><script type="text/javascript" src="https://content.arduino.cc/banner/banner.js"></script><script>!function(p){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)t=n[l],Object.prototype.hasOwnProperty.call(i,t)&&i[t]&&a.push(i[t][0]),i[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(p[r]=o[r]);for(s&&s(e);a.length;)a.shift()();return c.push.apply(c,u||[]),f()}function f(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==i[u]&&(n=!1)}n&&(c.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},i={1:0},c=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return p[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=p,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)l.d(t,n,function(e){return r[e]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var r=this.webpackJsonphomepage=this.webpackJsonphomepage||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;f()}([])</script><script src="/static/js/2.faaee37c.chunk.js"></script><script src="/static/js/main.ecb22a4c.chunk.js"></script></body></html>
    0
    
    
    disconnecting.
    Received 6595 bytes in 2.4306, rate = 2.71 kbytes/second


    Any insight on this?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 1 year ago in reply to KKaushik

    I've not used this library that you're using, so I don't know if it is a library fault or usage fault, but since it is open source, it will have a repo somewhere. If it's GitHub, you can create an account, and then raise it as an issue that hopefully the repo owner can respond to.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 1 year ago in reply to KKaushik

    You did get a successful connection and it took 648 millis.

    It then tried a GET function, which failed with a 404 error code (usually means something could not be found).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • JWx
    JWx over 1 year ago in reply to BigG

    it seems that program is trying to get (line 102 of Ethernet_HTTPS.ino):
    https://www.arduino.cc//asciilogo.txt
    which doesn't exists

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube