MqttTransport.emit
- MqttTransport.emit(event, *args, **kwargs)[source]
Emit
event, passing*argsand**kwargsto each attached function. ReturnsTrueif any functions are attached toevent; otherwise returnsFalse.Example:
ee.emit("data", "00101001")
Assuming
datais 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.