-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serials and hardware types in DeviceTable (#31)
* Add hardware types * Fix linter issues
- Loading branch information
1 parent
bec1a32
commit b9774a6
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
export function getHardwareType(hardwareId: number): string | undefined { | ||
switch (hardwareId) { | ||
case 1: | ||
return "LCN-SW1.0"; | ||
case 2: | ||
return "LCN-SW1.1"; | ||
case 3: | ||
return "LCN-UP1.0"; | ||
case 4: | ||
return "LCN-UP2"; | ||
case 5: | ||
return "LCN-SW2"; | ||
case 6: | ||
return "LCN-UP-Profi1-Plus"; | ||
case 7: | ||
return "LCN-DI12"; | ||
case 8: | ||
return "LCN-HU"; | ||
case 9: | ||
return "LCN-SH"; | ||
case 10: | ||
return "LCN-UP2"; | ||
case 11: | ||
return "LCN-UPP"; | ||
case 12: | ||
return "LCN-SK"; | ||
case 14: | ||
return "LCN-LD"; | ||
case 15: | ||
return "LCN-SH-Plus"; | ||
case 17: | ||
return "LCN-UPS"; | ||
case 18: | ||
return "LCN_UPS24V"; | ||
case 19: | ||
return "LCN-GTM"; | ||
case 20: | ||
return "LCN-SHS"; | ||
case 21: | ||
return "LCN-ESD"; | ||
case 22: | ||
return "LCN-EB2"; | ||
case 23: | ||
return "LCN-MRS"; | ||
case 24: | ||
return "LCN-EB11"; | ||
case 25: | ||
return "LCN-UMR"; | ||
case 26: | ||
return "LCN-UPU"; | ||
case 27: | ||
return "LCN-UMR24V"; | ||
case 28: | ||
return "LCN-SHD"; | ||
case 29: | ||
return "LCN-SHU"; | ||
case 30: | ||
return "LCN-SR6"; | ||
case 31: | ||
return "LCN-UMF"; | ||
case 32: | ||
return "LCN-WBH"; | ||
} | ||
return undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters