Search found 55 matches

by ebolisa
Sat Jul 16, 2022 1:01 pm
Forum: General Discussion and Questions
Topic: Using local time with Pico W
Replies: 17
Views: 50081

Re: Using local time with Pico W

Thank you!
by ebolisa
Sat Jul 16, 2022 12:08 pm
Forum: General Discussion and Questions
Topic: Using local time with Pico W
Replies: 17
Views: 50081

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
by ebolisa
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: 4952

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...
by ebolisa
Mon Apr 04, 2022 5:17 pm
Forum: General Discussion and Questions
Topic: suggest best resources to learn python
Replies: 9
Views: 5300

Re: suggest best resources to learn python

I recommend you take classes at your University.
by ebolisa
Mon Apr 04, 2022 5:14 pm
Forum: General Discussion and Questions
Topic: Urequest HTTP Post ECONNRESET
Replies: 2
Views: 1858

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...
by ebolisa
Mon Apr 04, 2022 4:31 pm
Forum: General Discussion and Questions
Topic: ESP32-CAM Revisited [SOLVED]
Replies: 20
Views: 16258

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.
by ebolisa
Mon Dec 20, 2021 8:00 am
Forum: General Discussion and Questions
Topic: RP2040 nano connect
Replies: 1
Views: 5620

RP2040 nano connect

Hi,
Does anyone know if, eventually, the rp2040 nano connect will run with micropython?
TIA
by ebolisa
Tue Nov 30, 2021 7:31 am
Forum: General Discussion and Questions
Topic: Q.on use of ujson
Replies: 3
Views: 2201

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 :|
by ebolisa
Mon Nov 29, 2021 10:53 pm
Forum: General Discussion and Questions
Topic: Q.on use of ujson
Replies: 3
Views: 2201

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...
by ebolisa
Sat Nov 06, 2021 11:11 am
Forum: General Discussion and Questions
Topic: mqtt_as connections issues
Replies: 2
Views: 1507

Re: mqtt_as connections issues

pythoncoder wrote:
Sat Nov 06, 2021 10:35 am
In the meantime another option is to deliberately disconnect from WiFi prior to initialising mqtt_as.
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.

Thank you!!