Thanks again for pointing me in the right direction. I ended up using get_array, which works with bot list and tuples.
I can now take all types of arguments (but only 0 or 1) and return all types as well as arrays of all types.
At this point, I got everything I need for my proof of concept. I'm not sure how my approach can scale to the flexibility the dbus-interface has.
Implementing a C function that takes a Python function as argument
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
-
- Posts: 11
- Joined: Fri Mar 04, 2022 9:47 am
Re: Implementing a C function that takes a Python function as argument
Can you please post an example using dbus?Turbinenreiter wrote: ↑Thu Dec 15, 2016 1:50 pmThank you!
I can now register a method and run a dbus Service from MicroPython.