alibaba / alibaba/AliOS-Things
[Bug Report]: 继电器模块出现问题,案例代码有误
- Dominant language
- C
- Stars
- 4.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### 联系方式
_No response_
### 您发现了什么问题
A bug happened!
运行环境:HASS,
固件版本:esp32
### 分支
master (Default)
### 请选择您发现此问题的解决方案名称
_No response_
### 日志
```shell
Traceback (most recent call last):
File "/data/pyamp/main.py", line 23, in
TypeError: 'int' object isn't callable
mp_task-258 212772
MicroPython v1.17-dirty on 2022-06-21T00:50:31; ESP32 module with ESP32
Type "help()" for more information.
使用案例代码relay初始化后,案例函数名称有误,与relay.py名称不一致,修改为relay.py的方法名称后运行报错!
```
Contributor guide
Research direction
Start with the relay initialization example and relay.py, then reproduce the reported TypeError on the ESP32 with the stated MicroPython environment. Compare the example's function names with the methods exposed by relay.py; done means the example runs without the reported callable-type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100