Search found 197 matches
- Tue Apr 20, 2021 9:03 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico MicroPython with networking over USB
- Replies: 10
- Views: 8140
Pico MicroPython with networking over USB
Code currently is too bad for commit+push to my fork. But running Pico Micropython on core0 and lwip networking plus webserver on core1 just works for the first time. You can download firmware.uf2 and try out yourself, see this posting for details: https://www.raspberrypi.org/forums/viewtopic.php?f=...
- Sat Apr 17, 2021 9:50 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] [Unix port] examples/network/http_client_ssl.py only works for google.com?
- Replies: 3
- Views: 3014
Re: [Unix port] examples/network/http_client_ssl.py only works for google.com?
google.com domain is really different. Doing HTTP request with slightly modified script ... pi@raspberrypi4B:~/pico/micropython/ports/unix $ diff nssl.py s.py 4c4 < ai=_socket.getaddrinfo('neverssl.com',80) --- > ai=_socket.getaddrinfo('google.com',80) pi@raspberrypi4B:~/pico/micropython/ports/unix ...
- Sat Apr 17, 2021 7:34 pm
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] [Unix port] examples/network/http_client_ssl.py only works for google.com?
- Replies: 3
- Views: 3014
Re: [Unix port] examples/network/http_client_ssl.py only works for google.com?
I think the example is wrong (works only for google.com, needs other code for other websites). Does not work for http without ussl either: pi@raspberrypi4B:~/pico/micropython/ports/unix $ cat nssl.py import usocket as _socket s=_socket.socket() ai=_socket.getaddrinfo('neverssl.com',80) s.connect(ai[...
- Sat Apr 17, 2021 4:57 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Wifi bridge for RPI Pico
- Replies: 40
- Views: 27390
Re: Wifi bridge for RPI Pico
... - but supporting MQTT that way would be, er, difficult. Difficult, but not impossible. MQTT Client only does three imports, and ubinascii is available on Pico MicroPython: https://github.com/micropython/micropython-lib/blob/master/umqtt.simple/umqtt/simple.py That leaves usocket and ussl not be...
- Sat Apr 17, 2021 11:23 am
- Forum: Programs, Libraries and Tools
- Topic: [SOLVED] [Unix port] examples/network/http_client_ssl.py only works for google.com?
- Replies: 3
- Views: 3014
[SOLVED] [Unix port] examples/network/http_client_ssl.py only works for google.com?
Both, Unix port MicroPython as well as python3, only work for example going against google.com -- any other https target does not: OSError -40 for "en.wikipedia.org". Domain not found for "nytimes.com": ... <_SSLSocket 11f9cf0> b'HTTP/1.1 500 Domain Not Found\r\nConnection: close\r\nContent-Length: ...
- Tue Apr 13, 2021 8:36 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico HTTPS GET through ESP01 serial2wifi
- Replies: 4
- Views: 3208
Re: Pico HTTPS GET through ESP01 serial2wifi
@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/firmware/rp2-pico-20210413-unstable-v1....
- Mon Apr 12, 2021 2:35 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Wifi bridge for RPI Pico
- Replies: 40
- Views: 27390
Re: Wifi bridge for RPI Pico
"Pico HTTPS GET through ESP01 serial2wifi"
viewtopic.php?f=21&t=10122
viewtopic.php?f=21&t=10122
- Tue Mar 23, 2021 1:38 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico HTTPS GET through ESP01 serial2wifi
- Replies: 4
- Views: 3208
Pico HTTPS GET through ESP01 serial2wifi
https://www.raspberrypi.org/forums/view ... 6&t=307704
Small demo with two Pico HTTPS GET reuqests against the internet, with rxbuf=512:
Small demo with two Pico HTTPS GET reuqests against the internet, with rxbuf=512:
- Tue Mar 23, 2021 1:35 pm
- Forum: General Discussion and Questions
- Topic: Problem with reading UART data longer than 32 bytes
- Replies: 5
- Views: 4480
Re: Problem with reading UART data longer than 32 bytes
Thank you, that is a great pull request ! In "Pico HTTPS GET through ESP01 serial2wifi" posting I described how to clone+build+flash your branch. https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=307704 Now Micropython can do HTTPS GET requests through ESP01, nice. Any idea how long it will t...
- Tue Mar 23, 2021 8:34 am
- Forum: General Discussion and Questions
- Topic: Problem with reading UART data longer than 32 bytes
- Replies: 5
- Views: 4480
Re: Problem with reading UART data longer than 32 bytes
If you use a memoryview you can use readinto to do a read without doing any allocations. I see the same 32 bytes uart buffer issue, and memoryview does not seem to help. I created a simple serial to wifi sketch running on ESP01: https://www.raspberrypi.org/forums/viewtopic.php?f=145&t=307220&p=1840...