Search found 39 matches

by lazarvgd
Wed Jul 21, 2021 6:19 am
Forum: ESP8266 boards
Topic: ESP8266 - micropython global variable does not work
Replies: 7
Views: 12564

Re: ESP8266 - micropython global variable does not work

How can we use global variable on other module/files. suppose I declare in start.py x = 'something' want to use in another_file.py def foo(): print(x) You need to import start.py file and then you can get access to the variable, as far as I remember. If I am wrong, please correct me. Take a look at...
by lazarvgd
Sat Apr 17, 2021 9:04 am
Forum: ESP32 boards
Topic: mqtt subscription doesn't work on ESP32
Replies: 2
Views: 2049

Re: mqtt subscription doesn't work on ESP32

Thank you so much! This is the problem that I compered files and still didn't see the issue.
Awesome! Cheer!
by lazarvgd
Fri Apr 16, 2021 12:15 pm
Forum: ESP32 boards
Topic: mqtt subscription doesn't work on ESP32
Replies: 2
Views: 2049

mqtt subscription doesn't work on ESP32

Hello I am trying to subscribe and print message form mqtt but for some reason my code doesn't work and I don't getting anything in console. But I am able to publish messages without any problem. Can you please help me with this? What am I missing? P.S. The board is connected to WIFI and getting tim...
by lazarvgd
Thu Apr 15, 2021 4:33 am
Forum: ESP32 boards
Topic: [SOLVED] rshell after disconnection board cannot connect again
Replies: 1
Views: 1018

Re: rshell after disconnection board cannot connect again

The problem is that with new mac os BigSure usb port becomes busy for some reason and that caused the problem.
Switching to linux pc I solved the problem, since I didn't know how to fix it on mac.
by lazarvgd
Wed Apr 14, 2021 2:15 pm
Forum: ESP32 boards
Topic: [SOLVED] rshell after disconnection board cannot connect again
Replies: 1
Views: 1018

[SOLVED] rshell after disconnection board cannot connect again

Hello, I am facing an issue with ESP32 board(node mcu esp-32s) and rshell. I am able to flash the board and upload the firmware, but once I create main.py with blink code (see the code below) and disconnect the board from the pc, I am not able to connect with rshell later when board is connected to ...
by lazarvgd
Fri Mar 05, 2021 9:09 am
Forum: General Discussion and Questions
Topic: DeepSleep and ESP8266 Issue
Replies: 1
Views: 1165

DeepSleep and ESP8266 Issue

Hello, I am trying to use deep sleep on Wemos esp8266(at least the board looks like a wemos board). I set conditions for deep sleep, but I do not understand why board doesn't proceed with work after it is woke up? I used this code snippet to put board to sleep def deep_sleep(msecs): #configure RTC.A...
by lazarvgd
Mon Dec 07, 2020 10:25 am
Forum: General Discussion and Questions
Topic: How robust is MicroPython file system?
Replies: 4
Views: 2435

Re: How robust is MicroPython file system?

MicroPython currently supports two filesystems, FAT32 and LittleFS (there are also a couple of hybrid options for the STM32 and ESP32). FAT32 is not particularly resilient and can easily be corrupted in the event of a power failure. LittleFS has been designed to be robust even in the face of power ...
by lazarvgd
Sun Dec 06, 2020 12:33 pm
Forum: General Discussion and Questions
Topic: How robust is MicroPython file system?
Replies: 4
Views: 2435

Re: How robust is MicroPython file system?

You haven't told us what hardware you're using. If it's a Pyboard you may be hitting this issue . On other platforms the problem is most likely to be electrical power related. Although code which fails leaving files open can corrupt any filesystem: use Python context managers to ensure this doesn't...
by lazarvgd
Sat Dec 05, 2020 9:10 pm
Forum: General Discussion and Questions
Topic: How robust is MicroPython file system?
Replies: 4
Views: 2435

How robust is MicroPython file system?

Hi there, I have used MicroPython before for a few projects and I really liked how easy is to write powerful apps with such an ease. But the problem that I very often run into is damaging the file system. For example, if the code run into a problem, I programmed to perform restart of the board or if...
by lazarvgd
Tue Feb 25, 2020 6:53 am
Forum: General Discussion and Questions
Topic: micropython and esp32 in greenhouse
Replies: 2
Views: 2090

micropython and esp32 in greenhouse

Hello, Probably this question is asked a few times, but I cannot find it with regular forum search, so I will ask it again. If you want please move/remove the question if ti violates some of the rules. :) I would like to ask you guys, more experience, engineers for an advice using ESP32(or 8266) and...