Search found 11 matches
- Wed May 19, 2021 12:25 pm
- Forum: ESP32 boards
- Topic: urequests - any way to download files by chunks
- Replies: 7
- Views: 13815
urequests - any way to download files by chunks
Hello, Is there any way to download files from web by chunks? In normal python, you can use requests.get(url, stream=True) and then you iterate over that response chunk by chunk. Is there any way to do the same in micropython, or you can only downlaod whole file at once? urequests library seems to a...
- Wed Apr 28, 2021 12:14 pm
- Forum: ESP32 boards
- Topic: WIFI scanning - doesn't find 13 channel
- Replies: 9
- Views: 5525
Re: WIFI scanning - doesn't find 13 channel
Ok, so I did some testing, and I found that my device can see the 12 and 13 channels, but it can't connect to them (it just tries without any result). Is there something that's not allowing it to connect? Or is it intended?
- Tue Apr 27, 2021 12:02 pm
- Forum: ESP32 boards
- Topic: WIFI scanning - doesn't find 13 channel
- Replies: 9
- Views: 5525
Re: WIFI scanning - doesn't find 13 channel
I made a mistake, I live in EU, so shouldn't there would be possible?
- Tue Apr 27, 2021 6:27 am
- Forum: ESP32 boards
- Topic: WIFI scanning - doesn't find 13 channel
- Replies: 9
- Views: 5525
Re: WIFI scanning - doesn't find 13 channel
Hello, I live in usa, so shouldn't the microcontroller see that (13th) channel? Thank you!pythoncoder wrote: ↑Mon Apr 26, 2021 5:24 pmPermitted channels vary between countries. For example if your ESP32 has been localised for the USA it won't see channels 12 or 13 which are not permitted there. Japan has an extra channel 14.
- Mon Apr 26, 2021 1:52 pm
- Forum: ESP32 boards
- Topic: WIFI scanning - doesn't find 13 channel
- Replies: 9
- Views: 5525
WIFI scanning - doesn't find 13 channel
Hello, when scanning wifi networks, I can't seem to find networks, that are in 13 channel. Is this normal, and is it possible to fix that?
Thanks for any help.
Thanks for any help.
- Tue Dec 29, 2020 7:33 pm
- Forum: ESP8266 boards
- Topic: Trouble initializing UART communication
- Replies: 11
- Views: 7467
Re: Trouble initializing UART communication
I tested the microcontroller, if it sends and receives any data, and it does. I tested it with seperate computer, which was kinda wired to the wires, going from my rs485, which is connected to my sensor, but I can't figure a way to read the data from my meter.
- Tue Dec 29, 2020 5:57 pm
- Forum: ESP8266 boards
- Topic: Trouble initializing UART communication
- Replies: 11
- Views: 7467
Re: Trouble initializing UART communication
I added line to ouput my created modbus, and it doesn't show my assigned tx/rx pins. Am I doing something wrong here? Also, on the manufacturer website of the electricity consumption meter, it writes about command codes, and command code 3 "Registers values reading". Do I have to pass that command s...
- Tue Dec 29, 2020 4:49 pm
- Forum: ESP8266 boards
- Topic: Trouble initializing UART communication
- Replies: 11
- Views: 7467
Re: Trouble initializing UART communication
a) there is no uart.deinit() method for ESP8266 b) you call machine.UART() instead UART() when initing the uart again. Both would be visible in the webrepl, which continues to work when you detach REPL from UART Changed code: from machine import Pin, UART import utime import uos def test(): #modbus...
- Tue Dec 29, 2020 4:02 pm
- Forum: ESP8266 boards
- Topic: Trouble initializing UART communication
- Replies: 11
- Views: 7467
Re: Trouble initializing UART communication
With the ESP8266 you cannot assign UART to different pins. You have to use GPIO1 and 3. While that might not be a problem for TX in your case, RX may be hard, since it is connected on many boards to the USB/UART bridge. On some boards lime the Wemos D1 there is a resistor between the ESP8266 and th...
- Tue Dec 29, 2020 1:29 pm
- Forum: ESP8266 boards
- Topic: Trouble initializing UART communication
- Replies: 11
- Views: 7467
Re: Trouble initializing UART communication
UART1 has no RX part, only TX. For a full duplex UART communication you have to use UART0. For that, you can detach UART0 from the REPL prompt using uos.dupterm() and use REPL with the WiFi webrepl app. See http://docs.micropython.org/en/latest/esp8266/quickref.html?highlight=dupterm Note about usi...