Browse Source

method is_connected added

master
Dirk Alders 4 years ago
parent
commit
1fa2e2fcf9
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      __init__.py

+ 3
- 0
__init__.py View File

195
         self.__comm_inst__.register_connect_callback(self.__clean_receive_buffer__)
195
         self.__comm_inst__.register_connect_callback(self.__clean_receive_buffer__)
196
         self.__comm_inst__.register_disconnect_callback(self.__authentification_state_reset__)
196
         self.__comm_inst__.register_disconnect_callback(self.__authentification_state_reset__)
197
 
197
 
198
+    def is_connected(self):
199
+        return self.__comm_inst__.is_connected()
200
+
198
     def __authentification_state_reset__(self):
201
     def __authentification_state_reset__(self):
199
         logger.info("%s Resetting authentification state to AUTH_STATE_UNKNOWN_CLIENT", self.LOG_PREFIX)
202
         logger.info("%s Resetting authentification state to AUTH_STATE_UNKNOWN_CLIENT", self.LOG_PREFIX)
200
         self.__authentification_state__ = self.AUTH_STATE_UNKNOWN_CLIENT
203
         self.__authentification_state__ = self.AUTH_STATE_UNKNOWN_CLIENT

Loading…
Cancel
Save