MqttTransport.emit
- MqttTransport.emit(event, *args, **kwargs)[source]
Emit
event
, passing*args
and**kwargs
to each attached function. ReturnsTrue
if any functions are attached toevent
; otherwise returnsFalse
.Example:
ee.emit('data', '00101001')
Assuming
data
is an attached function, this will calldata('00101001')'
.For coroutine event handlers, calling emit is non-blocking. In other words, you do not have to await any results from emit, and the coroutine is scheduled in a fire-and-forget fashion.