Search found 55 matches
- Sat Jul 16, 2022 1:01 pm
- Forum: General Discussion and Questions
- Topic: Using local time with Pico W
- Replies: 17
- Views: 54573
- Sat Jul 16, 2022 12:08 pm
- Forum: General Discussion and Questions
- Topic: Using local time with Pico W
- Replies: 17
- Views: 54573
Using local time with Pico W
Hi,
I noticed the ntptime lib is not included with the uOS for the Raspberry Pico W version.
Is there a way to get around it to obtain the local time?
TIA
I noticed the ntptime lib is not included with the uOS for the Raspberry Pico W version.
Is there a way to get around it to obtain the local time?
TIA
- Mon Apr 04, 2022 5:39 pm
- Forum: General Discussion and Questions
- Topic: How do upload code to the board with Thonny
- Replies: 6
- Views: 5100
Re: How do upload code to the board with Thonny
So ardunio has a eprom library that allows you to store data to the flash of the MCU. With micropython the remaining flash left after the firmware is uploaded is formatted to a fat32 or spiffs format for storage of your python scripts or any other data you want to write to the flash See https://for...
- Mon Apr 04, 2022 5:17 pm
- Forum: General Discussion and Questions
- Topic: suggest best resources to learn python
- Replies: 9
- Views: 5563
Re: suggest best resources to learn python
I recommend you take classes at your University.
- Mon Apr 04, 2022 5:14 pm
- Forum: General Discussion and Questions
- Topic: Urequest HTTP Post ECONNRESET
- Replies: 2
- Views: 1900
Re: Urequest HTTP Post ECONNRESET
You should post the php code. Anyway, try this: # sending post request and saving response as response object URL="http://127.0.0.1/esp_send.php/" DATA={"s1":"11187","s2":"65","s3":"54","s4":"1"} r = requests.post(url = URL, data = DATA) # extracting response text url_response = r.text print("The re...
- Mon Apr 04, 2022 4:31 pm
- Forum: General Discussion and Questions
- Topic: ESP32-CAM Revisited [SOLVED]
- Replies: 20
- Views: 16362
Re: ESP32-CAM Revisited [SOLVED]
From my little experience I've with these boards, I can tell you that micropython doesn't work well on clone boards.
- Mon Dec 20, 2021 8:00 am
- Forum: General Discussion and Questions
- Topic: RP2040 nano connect
- Replies: 1
- Views: 5635
RP2040 nano connect
Hi,
Does anyone know if, eventually, the rp2040 nano connect will run with micropython?
TIA
Does anyone know if, eventually, the rp2040 nano connect will run with micropython?
TIA
- Tue Nov 30, 2021 7:31 am
- Forum: General Discussion and Questions
- Topic: Q.on use of ujson
- Replies: 3
- Views: 2394
Re: Q on use of ujson
Sorry for the late reply. It was bed time for me right after I posted the question.
The json syntax error drove me nuts till I found out it was the text datatype in the array the the culprit.
However, it's working this morning, so I can only guess the ESP needed to be cooled down
The json syntax error drove me nuts till I found out it was the text datatype in the array the the culprit.
However, it's working this morning, so I can only guess the ESP needed to be cooled down
- Mon Nov 29, 2021 10:53 pm
- Forum: General Discussion and Questions
- Topic: Q.on use of ujson
- Replies: 3
- Views: 2394
Q.on use of ujson
Hi, The following code fails on an ESP because the data file contains a string. However, it runs on my win box. Why is that? TIA #alarm = [1, 2, 3, '4'] import ujson data_file = 'data.json' alarm = [] # with open(data_file, 'w') as f: # ujson.dump(alarm, f) with open(data_file, 'r') as f: alarm = uj...
- Sat Nov 06, 2021 11:11 am
- Forum: General Discussion and Questions
- Topic: mqtt_as connections issues
- Replies: 2
- Views: 1538
Re: mqtt_as connections issues
That will definitely do it. So, will do a disconnect after the OTA code has done with its routine and let mqtt_as connect again. This way, I can use the mqtt_as lib as designed.pythoncoder wrote: ↑Sat Nov 06, 2021 10:35 amIn the meantime another option is to deliberately disconnect from WiFi prior to initialising mqtt_as.
Thank you!!