Search found 10 matches
- Sun Jun 19, 2022 11:03 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1507176
- Sat Jun 18, 2022 12:01 pm
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1507176
Re: ESP-Now support for ESP32 (and ESP8266)
I tested :
import urandom
nb=urandom.randint(0,9)
And I have the same error message
import urandom
nb=urandom.randint(0,9)
And I have the same error message
- Sat Jun 18, 2022 11:20 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1507176
Re: ESP-Now support for ESP32 (and ESP8266)
Hi,
I have 2 ESP8266 communicate with ESP-NOW. I need to generate a random number on one side and send it to the other ESP.
When I write:
import random
nb=random.randint(0.9)
I have the error message: AttributeError: 'module' object has no attribute 'randint'
Where is my mistake?
Thanks.
I have 2 ESP8266 communicate with ESP-NOW. I need to generate a random number on one side and send it to the other ESP.
When I write:
import random
nb=random.randint(0.9)
I have the error message: AttributeError: 'module' object has no attribute 'randint'
Where is my mistake?
Thanks.
- Sun Jan 24, 2021 9:06 am
- Forum: Programs, Libraries and Tools
- Topic: DHT Library for ESP
- Replies: 8
- Views: 6942
Re: DHT Library for ESP
Hi,
Thank you for your answers.
I'll see if the RMT module can help me move forward.
On the other hand if someone has an idea to build a routine equivalent to pycom.pulses_get (), I am interested.
Regards
Thank you for your answers.
I'll see if the RMT module can help me move forward.
On the other hand if someone has an idea to build a routine equivalent to pycom.pulses_get (), I am interested.
Regards
- Sat Jan 23, 2021 9:50 am
- Forum: Programs, Libraries and Tools
- Topic: DHT Library for ESP
- Replies: 8
- Views: 6942
Re: DHT Library for ESP
Hi,
thank you for your reply. The Github https://github.com/micropython/micropyt ... rivers/dht matches my request but it's written in C. I'm looking for something like https://github.com/garyns/ pigpio-dht / blob / master / lib / pigpio_dht / dhtxx.py, adapted to ESP32.
Regards
thank you for your reply. The Github https://github.com/micropython/micropyt ... rivers/dht matches my request but it's written in C. I'm looking for something like https://github.com/garyns/ pigpio-dht / blob / master / lib / pigpio_dht / dhtxx.py, adapted to ESP32.
Regards
- Fri Jan 22, 2021 6:56 pm
- Forum: Programs, Libraries and Tools
- Topic: DHT Library for ESP
- Replies: 8
- Views: 6942
Re: DHT Library for ESP
Hi,
Yes I know there is a pilot but what I want is to understand how it works. Is there a DHT.py for ESP?
Regards.
Yes I know there is a pilot but what I want is to understand how it works. Is there a DHT.py for ESP?
Regards.
- Thu Jan 21, 2021 7:43 pm
- Forum: Programs, Libraries and Tools
- Topic: DHT Library for ESP
- Replies: 8
- Views: 6942
DHT Library for ESP
Hi, I am using Micropython on an ESP32 and want to understand how add-on libraries work. I started with the HD44780 library, and now I'm trying the DHT11 / 22 library. I found several but they are either for Raspberry, or for Cpython, or others but not for ESP. In short, I can't do the conversion wi...
- Sat Jan 09, 2021 7:41 pm
- Forum: Programs, Libraries and Tools
- Topic: Non-blocking WiFi connection
- Replies: 5
- Views: 15732
Re: Non-blocking WiFi connection
Thank you for this information.
I will read them and try to assimilate them.
Plub
I will read them and try to assimilate them.
Plub
- Sat Jan 09, 2021 10:09 am
- Forum: Programs, Libraries and Tools
- Topic: Non-blocking WiFi connection
- Replies: 5
- Views: 15732
Re: Non-blocking WiFi connection
Thank you for your reply. I have already seen this solution, but during these 10s the ESP is blocked, and that whatever the delay.
If I understand correctly, the WifiEventHandler works like interrupts, which means non-blocking.
Is it correct?
If I understand correctly, the WifiEventHandler works like interrupts, which means non-blocking.
Is it correct?
- Fri Jan 08, 2021 6:16 pm
- Forum: Programs, Libraries and Tools
- Topic: Non-blocking WiFi connection
- Replies: 5
- Views: 15732
Non-blocking WiFi connection
Hi, I don't speak perfect English and I use the Google translator ;) , sorry if the syntax is not perfect. I had fun with an Arduino with C ++ and now I want to use an ESP32 in Micropython, which allows Wifi connections. Most tutorials use a blocking loop to connect like: in C: While (WIFI.Status ()...