You are reading a single comment by @DamianMontero and its replies. Click here to read the full conversation.
  • As you can see BOTH the ESP32 (in this case an ESP32-CAM module) and a D1 Mini ESP8266 BOTH where able to connect httpS://google.com successfully

    so v2.04 of Espruino for both of these works perfectly with SSL.

    Hopefully we can close this issue in Github and mark this thread as (SOLVED)

    for those interested in playing along here's the code for copying and pasting:

    var ssid = '***';
    var password = '****';
    var port = 80;
    var wifi = require('Wifi');
    
    
    console.log("started");
    wifi.connect(ssid, {password: password}, function() {
        console.log('Connected to Wifi.  IP address is:', wifi.getIP().ip);
        var http = require('http');
    
        http.get("https://www.google.com", function(res) {
          res.on('data', function(data) {
            console.log(data);
          });
        });
        // wifi.save(); // Next reboot will auto-connect
    });
    
    

    2 Attachments

    • ESP32.png
    • ESP8266.png
About