Thank You
Wolli01
@Wolli01
Posts made by Wolli01
-
RE: Bluetooth over Core2
Doesn't anyone have a simple BLE example where I can just scan the ad data from Bluetooth?
-
[M5Core] empty UIFlow firmware
I would like to have a UIFlow to burn for the M5Core and Stick versions where there is no UIFlow start menu and such.
So similar to pure Micropython, but with all the drivers from UIFlow.
That would be my biggest wish! -
Bluetooth over Core2
Hello friends of the M5Stack.
Who has Bluetooth over UIFlow running in the Core2.
I need it to scan Bluetooth sensors.
Does anyone have a sample code for me? -
RE: req.status_code
'''
Update der Settingdaten holen---------------------------------------
if (Verbindung) == 1 and wifiCfg.wlan_sta.isconnected(): #Nur bei bestehender Internet Verbindung print("-----------------------------------------------") print("Überprüfe ob es eine Online-Setting Datei gibt") try: try: req = urequests.request(method='GET', url=settings.Gateway+'onlinesettings.txt') print('onlinesettings.txt wurde auf vorhandensein überprüft') print(str(req.status_code)) time.sleep(1) except: print('onlinesettings.txt ist nicht vorhanden') if (req.status_code == 200) : print('onlinesettings Uebertragung OK') if (ssd1306) == 1: if (settings.Display) == 1: lcd.print("Online Update, Setting erfolgt...",0,170,0xb8b8b8) time.sleep(1) #Warte 1 Sekunden with open('/sd/settings.py', 'w') as updatefile: updatefile.write(req.text) updatefile.close() print('onlinesettings wurde neu erstellt') time.sleep(1) #Datei wieder löschen------------- req = urequests.request(method='GET', url=settings.Gateway+'killsettings.php') print('Setting Datei wurde auf dem Server wieder geloescht') time.sleep(1) Setting_Online_Update = 1 else: print('Keine Setting Datei vorhanden!') print("-------------------------------------------") except Exception as e: print('Fehler!') print(e)
Update der Settingdaten holen---------------------------------------
# On Off Einstellungen holen--------------------------------------- if (Verbindung) == 1 and wifiCfg.wlan_sta.isconnected(): #Nur bei bestehender Internet Verbindung print("Überprüfe ob übers Internet ausgeschaltet wird") try: try: req1 = urequests.request(method='GET', url=settings.Gateway+'onoff.txt') print('onoff.txt wurde auf vorhandensein überprüft') print(str(req1.status_code)) time.sleep(1) except: print('onoff.txt ist nicht vorhanden') if (req1.status_code == 200) : print('onoff Uebertragung OK') OnOff = 0 # An Aus Schalter = Aus #Datei wieder löschen------------- req2 = urequests.request(method='GET', url=settings.Gateway+'killpoweronoff.php') print('On-Off Datei wurde auf dem Server wieder geloescht') time.sleep(1) else: print('Keine On-Off Datei vorhanden!') print("-------------------------------------------") except Exception as e: print('Fehler!') print(e) # On Off Einstellungen holen---------------------------------------
-
RE: req.status_code
Module is Core2.
It runs in a loop While True:
On the first run, everything runs correctly.
From the second run on, the status code is no longer displayed. It is simply skipped! -
RE: UIFlow 1.7.0
The example does not work. It would be nice to have one for the Core2 where you just scan BLE.
-
req.status_code
req = urequests.request(method='GET', url='http://xxx.de/Datum.txt')
print(str(req.status_code))The status code is displayed on the first pass, but not on the second pass. What could be the reason for this?
-
RE: Pure Micro Python without Ui-Flow on my M5Stack core2
@lukasmaximus
http://micropython.org/download/esp32/
Which file must be taken for the M5Stack Basic and for the Core 2? There are plenty of different ones.
Do you have a small example to output the text hello in the main.py?
The lib. Dateine I have downloaded all from your GitHub account and installed under the lib folder.
I've been trying for hours but the screen always stays blank. It would be nice if you could help.Translated with www.DeepL.com/Translator (free version)