Search found 17 matches

by alien1983
Tue May 11, 2021 1:03 pm
Forum: Programs, Libraries and Tools
Topic: microWebsrv check client connection
Replies: 1
Views: 1374

Re: microWebsrv check client connection

ok , after analyzing the code again here microWebsrv not a problem here.

if webrepl is connected it receives:
print(webrepl.client_s)
<socket>

if not connect:
print(webrepl.client_s)
none

I can get some details of this connection?
by alien1983
Tue May 11, 2021 9:23 am
Forum: Programs, Libraries and Tools
Topic: microWebsrv check client connection
Replies: 1
Views: 1374

microWebsrv check client connection

Hi, I am building a soil sensor for the garden on the micropython esp32, I have a problem with the microWebsrv library . I wanted to know when a client will connect to the server and when it will disconnect. I have not found any example of this:( in short, my program is supposed to do this... 1.Afte...
by alien1983
Tue Feb 23, 2021 12:58 pm
Forum: ESP32 boards
Topic: mqtt simple2 robust2 callback I need an example
Replies: 0
Views: 1384

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: 2960

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: 2960

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: 2960

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: 2960

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: 2960

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: 4135

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: 4362

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?