feat: plugin-sdk同步Device类型 + example-plugin适配新Message变体
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user