-
Hi @Gordon and others,
In my Espruino Pico, i'm requesting over https for a response and i get the following error message. Please help me on this. Thanksrequire("http").get("https://www.google.com", function(res) { console.log("Response: ",res); res.on('data', function(d) { console.log("--->"+d); }); });
>Connecting with TLS... ERROR: Failed! mbedtls_ssl_setup: Not enough memory ERROR: Unable to create socket
-
the Service worker's request would most likely fail because the HTTPS certificate
But i'm planning to use proper certificate
you could set up some kind of service on your own server
Yes, i'm thinking of running my own web service
Thanks for the quick response. BTW in general, do you think that there is no need for HTTPS in Espruino pico?
-
The use case is: I've an Espruino Pico (in the toy) that is connected to the internet, calls an API to get a CODE. Now i want to show the code to the user without using bluetooth, audio or display interface. So i thought i would use a push notification to send the code to the user.
If the HTTPs is not at all possible, then i may need to send an email with the code to the user. Anything else you can think of solving this?
-
Hi @Gordon,
I would like to use the Web PUSH notification feature via service worker. But the service worker can only be registered on HTTPS. You already said that i cannot run HTTPS server in Espruino Pico.How can i help you to get this HTTPS in? Please suggest if you have an alternate approach. Thanks.
-
Thank you! @Gordon
I had the following defensive code that caused the issue. It does not work because 'f.read(0) ' is a typed array and condition failed to assign a value.
let apSSID = f.read(0) && E.toString(f.read(0))
This works perfectly fine
let apSSID = typeof f.read(0) !== 'undefined' ? E.toString(f.read(0)) : '';
-
@Gordon I'm able to store the credentials in the FlashEEPROM, but i lose the data as i reboot. I can get the expected value from the left side panel but not in my code that is on the right side of IDE. Is it non-volatile or volatile memory?
-
-
I'm sureshkm, I've total of 14 years experience in the world wide web. For the past 10 years, i've been working as a front-end engineer. JavaScript is my strength.
More about me at my YouTube Channel
-
-
-
-
Hi @Gordon and friends,
I've a Toy that has Espruino Pico with ESP8266 WiFi module. I could connect to the WiFi by hard coding the SSID & PWD. But i would like to present this Toy to a few of my friends. How would i make sure the WiFi connection can be done more user friendly way ? That means my friends can't hard code the credentials. Please suggest me how can this be done? Thank you!