Closed jellespijker closed 1 year ago
26 tests ±0 26 :heavy_check_mark: ±0 13s :stopwatch: +4s 1 suites ±0 0 :zzz: ±0 1 files ±0 0 :x: ±0
Results for commit 1060ba9a. ± Comparison against base commit 536fcbf6.
:recycle: This comment has been updated with latest results.
Superseded by #1900
Description
It is now possible to Broadcast the Settings as provided by Cura to all plugins, provided that plugin subscribes to the channel. This information has to be given by the front-end.
Adding a new Broadcast requires the following steps:
BroadcastService<Name>Request
message b. Add a new RPC to all Slot Servicesrpc Broadcast<Name>(cura.plugins.v0.BroadcastService<Name>Request) returns (google.protobuf.Empty) {}
BroadcastService<Name>Request
from the Native types toplugins/converters.h
calledbroadcast_<name>_request
b. Add a factory function toplugins/broadcasts.h
which will return the converterc. Add a factory function to
plugins/broadcast.h
which will return the RPCd. Usage of in the engine will then be:
slots::instance().broadcast<"Broadcast<Name>">(<args>);
See also PR: