物联小白
Index
Contents
Functions
Modules
agent
autoload
binary
boot
device
configs
cron
database
Debounce
Event
kv
settings
utils
Watcher
yaml
serial
tcp_client
udp_client
BreathLed
Button
Buzzer
Fan
GPS
Led
Relay
RTC
Servo
Speeder
Stepper
Switch
Voice
watch_dog
device
devices
link
links
model
points
protocol
protocols
request
tees
cloud
master
iot
gpio
uart
i2c
spi
adc
pwm
can
mqtt_client
socket
voice
cjt188_device
cjt188_master
modbus
ModbusMapper
modbus_master_device
modbus_master
modbus_slave_device
modbus_slave
components
Executor
FSM
planners
robot
schedule
vm
Scene
scenes
Map
program
tjc
Complementary
ekf
EMA
filters
IIR
Kalman
MA
Median
Particle
a_star
d_star
dijkstra
IncrementPid
PositionPid
rrt
theta_star
Module
Event
事件机制(lua不能多重继承)
Functions
init ()
初始化
on (name, fn)
订阅消息
once (name, fn)
单次订阅
off (name, fn)
取消订阅
emit (name)
发送消息
Functions
init ()
初始化
on (name, fn)
订阅消息
Parameters:
name
名称
fn
回调
once (name, fn)
单次订阅
Parameters:
name
名称
fn
回调
off (name, fn)
取消订阅
Parameters:
name
名称
fn
回调,如果为空,则取消其全部订阅
emit (name)
发送消息
Parameters:
name
名称
generated by
LDoc 1.5.0
Last updated 2026-03-23 10:22:38