Event block category not working?


#1

Hello

I’m trying to get help to use the “event” block category in extension creation.
None of the lines of code I put in upload transcode appear in the generated python code when I use the hat block after extension is imported. Is there a special way to use event category? I can’t find this in documentation.

Thanks for any help.

Jean-David


#2

can you share your “event” blocks and tell me what is your situation to use the blocks.


#3

Thanks tech_support.
My use case is to make an extension to properly implemate the mqtt protocol (existing extension for codey is wrong in some aspects).


So as shown in this screenshot, I want a “hat” block, that is an event block which simply correspond to the callback function (usually called “on_message_come”).
Thanks