Page 1 of 1

Pico HTTPS GET through ESP01 serial2wifi

Posted: Tue Mar 23, 2021 1:38 pm
by HermannSW
https://www.raspberrypi.org/forums/view ... 6&t=307704


Small demo with two Pico HTTPS GET reuqests against the internet, with rxbuf=512:
Image

Re: Pico HTTPS GET through ESP01 serial2wifi

Posted: Tue Apr 13, 2021 8:36 am
by HermannSW
@robert-hh's pull request was worked on and merged 20h ago.
No need to build Micropython for robert-hh's configurable rx/tx buffers anymore.
Latest rp2 dailybuild from now on contains configurable UART buffers, here is latest:
https://micropython.org/resources/firmw ... ffda17.uf2

Code: Select all

>>> 
MPY: soft reboot
MicroPython v1.14 on 2021-04-13; Raspberry Pi Pico with RP2040
Type "help()" for more information.
>>> from machine import UART
>>> uart=UART(0, 115200, rxbuf=512)
>>> 

Re: Pico HTTPS GET through ESP01 serial2wifi

Posted: Wed Jul 20, 2022 3:14 am
by modulusmath
Howdy All

This seems pretty awesome. It seems like this file is the key:

https://micropython.org/resources/firmw ... ffda17.uf2

I got 404 Not Found trying.

The postings here literally seems like the best option for uP http gets/etc..

Anyway, I was thinking the esp01 would be a logical choice to add to a micro board like the pico. But most of the internet web show how to run as a webserver - not an http client. I guess I don't really understand the intent of the esp01 if it only understand AT commands.

Re: Pico HTTPS GET through ESP01 serial2wifi

Posted: Wed Jul 20, 2022 11:01 am
by jimmo
modulusmath wrote:
Wed Jul 20, 2022 3:14 am
This seems pretty awesome. It seems like this file is the key:

https://micropython.org/resources/firmw ... ffda17.uf2
HermannSW was saying that this firmware fixed the issue (it's probably the first nightly build after that feature was added), but any _later_ version will work. Just use the 1.19.1 release -- https://micropython.org/download/rp2-pico/

Re: Pico HTTPS GET through ESP01 serial2wifi

Posted: Thu Jul 21, 2022 3:03 am
by modulusmath
jimmo wrote:
Wed Jul 20, 2022 11:01 am
modulusmath wrote:
Wed Jul 20, 2022 3:14 am
This seems pretty awesome. It seems like this file is the key:

https://micropython.org/resources/firmw ... ffda17.uf2
HermannSW was saying that this firmware fixed the issue (it's probably the first nightly build after that feature was added), but any _later_ version will work. Just use the 1.19.1 release -- https://micropython.org/download/rp2-pico/
Right. Thanks for that. I thought followed up on all the threads.

For what it's worth, I'm able to connect to wifi and given an HTTP resource like neverssl, tcpdump shows me SYN/ACK, so I can send data with AT commands. However, (I am still pursing how to get the latest Firmware on the esp01, that seems like it could be a bit involved and trying to keep it simple w/o introducing TLS), it is at:

Code: Select all

AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
compile time:May 20 2016 15:08:19
I may be being thick but I can't use the newer method, it redirects so I pursue the final URL:

>>> uart0.write("http://splendidfinewonderouskiss.neverssl.com/online/" + "\n")
54
>>> print(uart0.read().decode())
http://splendidfinewonderouskiss.neverssl.com/online/
ERROR


I'll keep pursuing this including the firmware upgrade...