Search found 81 matches
- Tue Sep 11, 2018 1:06 am
- Forum: General Discussion and Questions
- Topic: Last will on umqtt.simple
- Replies: 28
- Views: 17200
Re: Last will on umqtt.simple
I found this topic, https://forum.micropython.org/viewtopic.php?t=3584 - which asks almost exactly the same. I added a "keepalive" time out - and now I get my "last will" notification all time ( around 1-2 minutes ). Now, this is not a fake " last will" since somehow it does get disconnected from br...
- Tue Sep 11, 2018 1:01 am
- Forum: General Discussion and Questions
- Topic: Last will on umqtt.simple
- Replies: 28
- Views: 17200
- Mon Sep 10, 2018 5:13 pm
- Forum: General Discussion and Questions
- Topic: Last will on umqtt.simple
- Replies: 28
- Views: 17200
Last will on umqtt.simple
Hi, I'm trying to config my ESP8266 running Micropython, to notify "last-will", as shown below and according to developer as noted on github. still- I get no notification when I disconnect my ESP8266, other command and notification work as needed. Guy def startMQTTclient(self): self.mqtt_client = MQ...
- Sun Sep 09, 2018 4:07 pm
- Forum: General Discussion and Questions
- Topic: Detect file size and delete
- Replies: 6
- Views: 3431
- Sun Sep 09, 2018 11:37 am
- Forum: General Discussion and Questions
- Topic: Detect file size and delete
- Replies: 6
- Views: 3431
Re: Detect file size and delete
The uos module provides the required functions. uos.stat(filename)[6] returns the file size. uos.remove(filename) deletes a file For further Information, consult the documentation: http://docs.micropython.org/en/latest/pyboard/library/uos.html looking at the docs referred - there is no explanation ...
- Sat Sep 08, 2018 6:31 pm
- Forum: General Discussion and Questions
- Topic: Detect file size and delete
- Replies: 6
- Views: 3431
- Sat Sep 08, 2018 6:04 pm
- Forum: General Discussion and Questions
- Topic: Detect file size and delete
- Replies: 6
- Views: 3431
Detect file size and delete
Hi,
On an ESP32 I execute Micropython Code. Since wifi and MQTT error can occur from time to time- I keep an error log saved locally.
I wish to know how can I detect file's size, and delete it if it greater that a certain size ( it will be check from time to time ),
Guy
On an ESP32 I execute Micropython Code. Since wifi and MQTT error can occur from time to time- I keep an error log saved locally.
I wish to know how can I detect file's size, and delete it if it greater that a certain size ( it will be check from time to time ),
Guy
- Sun Sep 02, 2018 7:12 am
- Forum: ESP8266 boards
- Topic: Connect to Wifi
- Replies: 6
- Views: 3999
Re: Connect to Wifi
Hi Peter, My apologies for my poor English, I'm not a native speaker :? I'll try to explain more clearly- I design a Iot device including an ESP32 /ESP8266 ( didn't decide yet, what is best for the job ), using MicroPython. So far- the code is running as expected ( 2 relays work together to control ...
- Fri Aug 31, 2018 6:56 am
- Forum: ESP8266 boards
- Topic: Connect to Wifi
- Replies: 6
- Views: 3999
Re: Connect to Wifi
thank you.
I want to be sure I understand the connection procedure, since on boot I run my connect_to_wifi file during main.py - it asks a for a static ip, so when the other takes places' before or after ? my concern here IP address conflicts
Guy
I want to be sure I understand the connection procedure, since on boot I run my connect_to_wifi file during main.py - it asks a for a static ip, so when the other takes places' before or after ? my concern here IP address conflicts
Guy
- Thu Aug 30, 2018 6:21 pm
- Forum: ESP8266 boards
- Topic: Connect to Wifi
- Replies: 6
- Views: 3999
Connect to Wifi
Hi,
I bought an ESP8266, after some time I'm using ESP32.
On ESP32 I start wifi during main.py.
In ESP8266 ( after running same script successfully connecting to the internet ), I noticed that even if I don't run it on boot, port is still connected.
why is that ?
how can I control it ?
I bought an ESP8266, after some time I'm using ESP32.
On ESP32 I start wifi during main.py.
In ESP8266 ( after running same script successfully connecting to the internet ), I noticed that even if I don't run it on boot, port is still connected.
why is that ?
how can I control it ?