blinker-iot / blinker-library

An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
https://diandeng.tech/
MIT License
3.9k stars 232 forks source link

使用Blinker.Weather报错OSError: [Errno 12] ENOMEM #570

Closed HakFoo closed 3 years ago

HakFoo commented 3 years ago

== 提问请到论坛 https://www.arduino.cn/forum-132-1.html ==

基本信息

设备信息

问题描述

使用了Blinker_Weather就会报错,其他的没问题

代码

from machine import Pin, I2C from ssd1306 import SSD1306_I2C from Blinker.Blinker import Blinker, BlinkerButton, BlinkerNumber from Blinker.BlinkerDebug import *



while True: oled.fill(0) oled.invert(False) Blinker.run() year = str(Blinker.year()) month = str(Blinker.month()) mday = str(Blinker.mday()) wday = Blinker.wday() hour = str(Blinker.hour()) min = str(Blinker.minute()) sec = str(Blinker.second()) oled.text(year+'/'+month+'/'+mday+' '+week[wday], 0, 0) oled.text(hour+':'+min+':'+sec, 0, 10) weather = Blinker.weather() oled.show()

LOG信息

在这里填写您设备串口输出的LOG信息

编译信息

Traceback (most recent call last): File "main.py", line 49, in File "Blinker/Blinker.py", line 656, in weather File "BlinkerAdapters/BlinkerWiFi.py", line 344, in weather File "modules/urequests.py", line 112, in get File "modules/urequests.py", line 60, in request OSError: [Errno 12] ENOMEM MicroPython v1.14 on 2021-04-09; ESP32 module with ESP32 Type "help()" for more information.