sago35 / go-erpcgen

Generate Go / TinyGo code using eRPC idl as input
2 stars 1 forks source link

How to use callbacks with this package? #3

Open deadprogram opened 9 months ago

deadprogram commented 9 months ago

Does this package currently support callbacks?

For example, I would like to use https://github.com/sago35/go-erpcgen/blob/main/rtl8720dn/rpc.go#L2701 in the same way it is used here https://github.com/Seeed-Studio/Seeed_Arduino_rpcUnified/blob/master/examples/ble_client/ble_client.ino#L50 or something similar?

sago35 commented 9 months ago

@deadprogram No, it is not supported at the moment.

Currently, the code generated with go-erpcgen does not work with BLE. The reasons for this are as follows. First, we need to address this part, but when I tried in the past, I couldn't complete it all the way.

The relevant posts are as follows.

deadprogram commented 5 months ago

@sago35 so for example, we would need to do something like this?

Does that sound correct?