Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

fix: remove obsolete/inapplicable elements from profiles #60

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion profiles/Grove_Button.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "D4", Interface: "GPIO", Type: "IN" }
properties:
value:
{ type: "Uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Uint8", readWrite: "RW", minimum: "0", maximum: "1", defaultValue: "0" }
units:
{ type: "String", readWrite: "R", defaultValue: "" }

Expand Down
4 changes: 2 additions & 2 deletions profiles/Grove_Buzzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "D8", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "Bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Bool", readWrite: "RW" }
units:
{ type: "String", readWrite: "R", defaultValue: "on/off" }

Expand All @@ -34,4 +34,4 @@ commands:
expectedValues: []
- code: "503"
description: "service unavailable"
expectedValues: []
expectedValues: []
6 changes: 3 additions & 3 deletions profiles/Grove_LCD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "String", readWrite: "RW", size: "16", minimum: "0", maximum: "15", defaultValue: "0" }
{ type: "String", readWrite: "RW", defaultValue: "0" }
units:
{ type: "String", readWrite: "R", defaultValue: "0" }
- name: Row
Expand All @@ -20,7 +20,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "Uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Uint8", readWrite: "RW", minimum: "0", maximum: "1", defaultValue: "0" }
units:
{ type: "String", readWrite: "R", defaultValue: "0" }
- name: Column
Expand All @@ -29,7 +29,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "Uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "15", defaultValue: "0" }
{ type: "Uint8", readWrite: "RW", minimum: "0", maximum: "15", defaultValue: "0" }
units:
{ type: "String", readWrite: "R", defaultValue: "0" }

Expand Down
6 changes: 3 additions & 3 deletions profiles/Grove_LED.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "D3", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "Bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Bool", readWrite: "RW" }
units:
{ type: "String", readWrite: "R", defaultValue: "Enabled/Disabled" }

Expand All @@ -21,7 +21,7 @@ deviceResources:
{ Pin_Num: "D6", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "Bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Bool", readWrite: "RW" }
units:
{ type: "String", readWrite: "R", defaultValue: "Enabled/Disabled" }

Expand All @@ -31,7 +31,7 @@ deviceResources:
{ Pin_Num: "D2", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "Bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Bool", readWrite: "RW" }
units:
{ type: "String", readWrite: "R", defaultValue: "Enabled/Disabled" }

Expand Down
2 changes: 1 addition & 1 deletion profiles/Grove_LightSensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "A0", Interface: "AIO", Type: "IN" }
properties:
value:
{ type: "Float32", readWrite: "RW", minimum: "0", maximum: "", defaultValue: "0" }
{ type: "Float32", readWrite: "RW", minimum: "0", defaultValue: "0" }
units:
{ type: "String", readWrite: "R", defaultValue: "lumen" }

Expand Down
2 changes: 1 addition & 1 deletion profiles/Grove_Relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deviceResources:
{ Pin_Num: "D7", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "Bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "Bool", readWrite: "RW" }
units:
{ type: "String", readWrite: "R", defaultValue: "on/off" }

Expand Down
20 changes: 10 additions & 10 deletions res/Grove_Device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ deviceResources:
{ Pin_Num: "D2", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "bool", readWrite: "RW" }
units:
{ type: "string", readWrite: "R", defaultValue: "Enabled/Disabled" }
- name: Green-LED
Expand All @@ -21,7 +21,7 @@ deviceResources:
{ Pin_Num: "D3", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "bool", readWrite: "RW" }
units:
{ type: "string", readWrite: "R", defaultValue: "Enabled/Disabled" }
- name: ButtonState
Expand All @@ -30,7 +30,7 @@ deviceResources:
{ Pin_Num: "D4", Interface: "GPIO", Type: "IN" }
properties:
value:
{ type: "uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "uint8", readWrite: "RW", minimum: "0", maximum: "1", defaultValue: "0" }
units:
{ type: "string", readWrite: "R", defaultValue: " " }
- name: Red-LED
Expand All @@ -39,7 +39,7 @@ deviceResources:
{ Pin_Num: "D6", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "bool", readWrite: "RW" }
units:
{ type: "string", readWrite: "R", defaultValue: "Enabled/Disabled" }
- name: Grove-Relay
Expand All @@ -48,7 +48,7 @@ deviceResources:
{ Pin_Num: "D7", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "bool", readWrite: "RW" }
units:
{ type: "string", readWrite: "R", defaultValue: " " }
- name: Grove-Buzzer
Expand All @@ -57,7 +57,7 @@ deviceResources:
{ Pin_Num: "D8", Interface: "GPIO", Type: "OUT" }
properties:
value:
{ type: "bool", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "bool", readWrite: "RW" }
units:
{ type: "string", readWrite: "R", defaultValue: " " }
- name: Display-String
Expand All @@ -66,7 +66,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "string", readWrite: "RW", size: "16", minimum: "0", maximum: "15", defaultValue: "0" }
{ type: "string", readWrite: "RW", defaultValue: "0" }
units:
{ type: "string", readWrite: "R", defaultValue: "0" }
- name: Row
Expand All @@ -75,7 +75,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "1", defaultValue: "0" }
{ type: "uint8", readWrite: "RW", minimum: "0", maximum: "1", defaultValue: "0" }
units:
{ type: "string", readWrite: "R", defaultValue: "0" }
- name: Column
Expand All @@ -84,7 +84,7 @@ deviceResources:
{ Pin_Num: "I2C-2", Interface: "I2C", Type: "LCD" }
properties:
value:
{ type: "uint8", readWrite: "RW", size: "1", minimum: "0", maximum: "15", defaultValue: "0" }
{ type: "uint8", readWrite: "RW", minimum: "0", maximum: "15", defaultValue: "0" }
units:
{ type: "string", readWrite: "R", defaultValue: "0" }
- name: LightIntensity
Expand All @@ -93,7 +93,7 @@ deviceResources:
{ Pin_Num: "A0", Interface: "AIO", Type: "IN" }
properties:
value:
{ type: "float32", floatEncoding: "eNotation", readWrite: "RW", minimum: "0", maximum: "", defaultValue: "0" }
{ type: "float32", floatEncoding: "eNotation", readWrite: "RW", minimum: "0", defaultValue: "0" }
units:
{ type: "string", readWrite: "R", defaultValue: "lumen" }
- name: SoundIntensity
Expand Down
1 change: 0 additions & 1 deletion res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
MaxCmdResultLen = 256
RemoveCmd = ""
RemoveCmdArgs = ""
ProfilesDir = ""
SendReadingsOnChanged = true

[Driver]
Expand Down