Skip to content

Commit c6c6b52

Browse files
committed
Adding os_id field for Python.
1 parent 6e88b72 commit c6c6b52

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

LiveObjects/hal.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class BoardsInterface:
2121
PYTHON = 1
2222
MICROPYTHON = 2
2323

24+
WINDOWS = 1
25+
LINUX = 2
26+
2427
@staticmethod
2528
def create_credentials(net_type):
2629
return LiveObjects.Credentials(net_type)
@@ -39,6 +42,9 @@ def get_lang_str(self):
3942
def get_lang_id(self):
4043
return self._lang_id
4144

45+
def get_os_id(self):
46+
pass
47+
4248
def get_security_level(self):
4349
pass
4450

@@ -120,6 +126,7 @@ def get_security_level(self):
120126
class Linux(BoardsInterface):
121127
def __init__(self, net_type):
122128
self._lang_id = BoardsInterface.PYTHON
129+
self._os_id = BoardsInterface.LINUX
123130
self._net_type = BoardsInterface.EXISTING_NETWORK if net_type == BoardsInterface.DEFAULT_CARRIER else net_type
124131
self._carrier_capability = (BoardsInterface.EXISTING_NETWORK,)
125132
self._existing_network_tls_capability = True
@@ -132,6 +139,9 @@ def connect(self):
132139
def get_security_level(self):
133140
return LiveObjects.SSL if self._existing_network_tls_capability else LiveObjects.NONE
134141

142+
def get_os_id(self):
143+
return self._os_id
144+
135145

136146
class BoardsFactory:
137147

0 commit comments

Comments
 (0)