arduino / arduino-lib-mpy

Packages to be included in Arduino MicroPython distros as frozen modules
Mozilla Public License 2.0
1 stars 1 forks source link

lib/msgpackrpc: Require a name when binding callables. #8

Closed iabdalkader closed 6 months ago

iabdalkader commented 6 months ago

This change adds a required name argument to MsgPackRPC.bind() to avoid any ambiguity when binding multiple instances of the same class for example. Additionally, bind() now supports binding whole objects, by binding all of their public methods using their respective qualified names.