I think that in order to expose digital bus to user patches, the following would be needed:
- callbacks on receiving of commands, data and messages
- service calls for sending the same entities plus sending parameters, getting number of discovered peers and bus state
- in order to fully utilize digital bus with more than one device, some way to assign device names is required
Most of this stuff is a part of bus.h, but doesn’t have implementation other than debug printing.
For now I will concentrate on first 2 points and I mostly understand how they can be implemented. Besides that, I think an extra service call for switching patches should be added - it’s not required for digital bus, but something that could run as callback for commands in some cases.