added the settings structure to the peripherals

This commit is contained in:
2025-01-18 16:25:09 +01:00
parent 0e3f57f5fb
commit 3fbf4b5df4
2 changed files with 27 additions and 19 deletions

View File

@@ -10,7 +10,8 @@ type Peripheral interface {
Deactivate(context.Context) error // Deactivate the peripheral
SetDeviceProperty(context.Context, uint32, uint32, byte) error // Update a device property
GetInfo() PeripheralInfo // Get the peripheral information
GetInfo() PeripheralInfo // Get the peripheral information
GetSettings() map[string]interface{} // Get the peripheral settings
}
// PeripheralInfo represents a peripheral information