-
• #27
this was the solution I use long time ago for testing.
-
• #28
here you find a newer one https://github.com/jthomperoo/simple-proxy
-
• #29
Thank you very much MaBe!
-
• #31
My REST API example:
var options = { protocol: "http:", method: 'POST', host: 'XXXX.XXXX.XXXX.XXXX', // Proxy IP path: 'https://endpoint.com/', // Landing URL port: 8888, pathname: "restpath", search: null, query: null, headers: { "Content-Type": "application/json", "Content-Length": content.length } }; var req = require("http").request(options, function (res) { var d = ""; res.on('data', function (data) { if (d.length < 8) d += data; }); res.on('close', function (data) { callback(); }); }); req.on('error', function (e) { callback(); }); req.end(content); } catch (f) { }
-
• #32
btw, I had problems with simple proxy, but the Squid proxy works very well
-
• #34
Do you know this?
https://en.minewsemi.com/lora-module/lr1110-nrf52840-me25LS01#pro-detail
Maybe this could be the basis of the new official Espruino Wifi.
(And then the esp32 could be completely forgotten.) -
• #35
How is this related to esp32 and why it should be forgotten? From the basic info this can't do Wi-Fi, it can only passively scan (GPS and) Wi-Fi to determine location. And BTW they have wrong info about RAM, 52840 has only 256KB so maybe other info can be wrong too.
-
• #36
I think probably I'd make nRF52840 the basis of a new Espruino WiFi, but as @fanoush mentioned I don't think that module will do WiFi in any way other than just being able to scan for APs - so there would have to be a separate WiFi module.
Personally I'd quite like to just use an ESP32-C3 on its own, but it's hard to make it decently low power without losing the contents of RAM and having a long wakeup time - so the nRF52840 would be good from that point of view. It's just a shame they're so expensive at the moment
-
• #37
Unfortunately, I didn't read the wifi functions carefully.
esp32 is a memory and energy eater, currently unsuitable for "mobile" operation. BLE is unusable, unstable and unreliable.
I would choose a low-power, very reliable controller as an "official" device. For example the NRF52840 (I really like the Espruino MDBT42Q) with a Wifi (ESP) modul and with a mosfet "switch".
-
• #38
An excellent thought.
Thanks MaBe,
Thank you for checking! Now I understand the reason. I think most sites no longer support TLS 1.0/1.1 and TLS 1.2 will be deprecated soon. Unfortunately, the ESP8266 cannot be used for this purpose. An ugly solution. but useful is the http_to_https proxy.