How to add "pint ouput" to BP library in C++?

Hi everyone !

I’m trying to do a MQTT (https://eclipse.org/paho/clients/cpp/) connector which I’ll be able to use in BPs. So I’m writing my very first BP library.

Basically I would like to have 4 new bp nodes : connect, disconnect, subscribe and send.

The thing is I don’t really know where to start. For example each of those nodes must have a on fail and on succes output pins. But I don’t know how to types my method.

I’m trying to understand with the core blueprints and I’ve found something that seems interesting : ENetworkFailure but I think I’ll need advices haha.

Thanks a lot !

Use reference

void func(bool& OnSucces, int32& i);

“OnSuccess” and “i” should appear as outputs