Wemos D1 mini Wifi Error


#1

I’m getting this error when I run my code
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 32524, room 16

tail 12

chksum 0x93

ho 0 tail 12 room 4

load 0x3ffe8000, len 2272, room 12

tail 4

chksum 0x1f

load 0x3ffe88e0, len 7596, room 4

tail 8

chksum 0x83

csum 0x83

I tried everything! I ereased the flash, reflashed esp firmware, everything! I think it’s from the wifi because without it works.

My Code:
import streams
from bosch.bme280 import bme280
from wireless import wifi
from espressif.esp8266wifi import esp8266wifi as wifi_driver
import requests

s=streams.serial()
wifi_driver.auto_init()

url = ‘http://192.168.178.50/Get_Data/index.php

#Setup sensor
print(“start…”)
bme = bme280.BME280(I2C0, 0x76, 100000)
print(“Ready!”)
print("--------------------------------------------------------")

#Setup Wifi
wifi.link(“W73MGR”, wifi.WIFI_WPA2, “ClaudiundClaraHechtfischer”)
print(“Linked!”)
info = wifi.link_info()
print(info[0])

try:
while True:
temp, hum, pres = bme.get_values()
payload = {“temp”: temp, “druck”: pres, “feucht”: hum}
response = requests.get(url, params=payload)
print(“Temperature:”, temp, “C”)
print(“Humidity:”, hum, “%”)
print(“Pressure:”, pres, “Pa”)
print("--------------------------------------------------------")
sleep(2000)
except Exception as e:
print("Error2: ",e)


#2

Could you please try an example that uses the Wifi only? Just to see what kind of error it gives.
Please try example such as WIfi connect and tell me the output.


#3

I found out that its the response line(response = requests.get(url, params=payload)) causes the error. This command is in examples also not working.