Search found 15 matches

by alien1983
Tue Feb 23, 2021 12:58 pm
Forum: ESP32 boards
Topic: mqtt simple2 robust2 callback I need an example
Replies: 0
Views: 87

mqtt simple2 robust2 callback I need an example

Hi, I need example code to use method: set_callback_status & set_callback ?. I need an example code (calback) to check if sending the message / topic subscription was successful or not. How to do it I have in this library mqtt simple2, robust2 ? https://github.com/fizista/micropython-umqtt.simple2/b...
by alien1983
Sat Feb 20, 2021 7:56 pm
Forum: General Discussion and Questions
Topic: I am looking for a solution for _thread in class object
Replies: 7
Views: 262

Re: I am looking for a solution for _thread in class object

Hi, I did a little revision to the threading class MP Lobo, and it finally works:) import _thread class Thread: def __init__(self, group=None, target=None, name=None, args=(), kwargs=None): self.target = target self.args = args self.name = name self.kwargs = {} if kwargs is None else kwargs def star...
by alien1983
Fri Feb 19, 2021 5:01 pm
Forum: General Discussion and Questions
Topic: I am looking for a solution for _thread in class object
Replies: 7
Views: 262

Re: I am looking for a solution for _thread in class object

Hi,
board: Heltec Wireless Stick.

Soft: MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on ESP32 board with ESP32
by alien1983
Fri Feb 12, 2021 10:14 am
Forum: General Discussion and Questions
Topic: I am looking for a solution for _thread in class object
Replies: 7
Views: 262

Re: I am looking for a solution for _thread in class object

main.py # A minimal threading example with function calls import threading import time def loop1_10(): for i in range(1, 11): time.sleep(1) print(i) threading.Thread(target=loop1_10).start() # A minimal threading example with an object import threading import time class MyThread(threading.Thread): ...
by alien1983
Wed Feb 10, 2021 2:25 pm
Forum: General Discussion and Questions
Topic: I am looking for a solution for _thread in class object
Replies: 7
Views: 262

Re: I am looking for a solution for _thread in class object

I found this module in internet: GitHuB micropython-lib/threading/ threading.py import _thread class Thread: def __init__(self, group=None, target=None, name=None, args=(), kwargs=None): self.target = target self.args = args self.kwargs = {} if kwargs is None else kwargs def start(self): _thread.sta...
by alien1983
Wed Feb 10, 2021 2:23 pm
Forum: General Discussion and Questions
Topic: I am looking for a solution for _thread in class object
Replies: 7
Views: 262

I am looking for a solution for _thread in class object

Hi, This is an example of threading for a class... # A minimal threading example with an object import threading import time class MyThread(threading.Thread): def run(self): # Default called function with mythread.start() print("{} started!".format(self.getName())) # "Thread-x started!" time.sleep(1...
by alien1983
Fri Aug 30, 2019 5:29 pm
Forum: ESP32 boards
Topic: ssd1306 heltec wireless-stick oled not work correctly
Replies: 5
Views: 1787

ssd1306 heltec wireless-stick oled not work correctly

Hi, I'm having trouble displaying pixel text on the screen correctly! Board: https://heltec.org/project/wireless-stick/ System Image: LoBo MicroPython. Library: ssd1306.py # MicroPython SSD1306 OLED driver, I2C and SPI interfaces import time import framebuf # register definitions SET_CONTRAST = cons...
by alien1983
Thu Oct 04, 2018 5:18 am
Forum: ESP32 boards
Topic: Lobo Micropython esp32 wlan frozen
Replies: 6
Views: 2041

Re: Lobo Micropython esp32 wlan frozen

I tested this port (lobo) is unstable. It no working good . Ftp telnet webserver . it's easy to hang it.
:| you have some solution for stable work like ardiuno / raspberry pi .? Esp32 with micropython + ftp telnet/ssh + webserver?
by alien1983
Mon Oct 01, 2018 3:09 am
Forum: ESP32 boards
Topic: Lobo Micropython esp32 wlan frozen
Replies: 6
Views: 2041

Lobo Micropython esp32 wlan frozen

Hi, If I have an automatic start wlan esp32 frozen very often during the start. If I run Wlan by manual it is much less common frozen. ####################################### Terminal ####################################### D (1064) nvs: nvs_get MPY_StackSize 4 D (1065) nvs: nvs_get_str_or_blob MpyT...
by alien1983
Mon Sep 10, 2018 3:49 pm
Forum: ESP32 boards
Topic: Esp32 & micropython connect to console via wlan
Replies: 4
Views: 1735

Re: Esp32 & micropython connect to console via wlan

how can I easily install it (raspberry pi ==>esp32) ?