feat: plugin-sdk同步Device类型 + example-plugin适配新Message变体

This commit is contained in:
showen
2026-03-13 06:58:28 +08:00
parent 2c14f5f04c
commit 48d1eeb7c4
4 changed files with 189 additions and 0 deletions

View File

@@ -468,6 +468,15 @@ impl ShowenPlugin for ExamplePlugin {
Message::PluginReady(plugin_name) => {
eprintln!("[ExamplePlugin] observed peer readiness: {plugin_name}");
}
Message::DeviceCommand(_cmd) => {
eprintln!("[ExamplePlugin] device command received (not handled)");
}
Message::DeviceResponse(_resp) => {
eprintln!("[ExamplePlugin] device response received (not handled)");
}
Message::DeviceEvent(_event) => {
eprintln!("[ExamplePlugin] device event received (not handled)");
}
Message::Custom { kind, payload } => {
eprintln!("[ExamplePlugin] custom message: kind={kind}, payload={payload}");
}