Mercurial > libervia-backend
comparison sat/core/sat_main.py @ 3125:c3ce8c997fdf
plugin android: reconnect profiles with autoconnect if network is activated:
if network is activated, we check that all profiles with autoconnect are indeed connected,
and reconnect them if necesssary.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 26 Jan 2020 18:08:09 +0100 |
parents | 130f9cb6e0ab |
children | 9d0df638c8b4 |
comparison
equal
deleted
inserted
replaced
3124:b86060901278 | 3125:c3ce8c997fdf |
---|---|
720 """set wanted paramater and notice observers""" | 720 """set wanted paramater and notice observers""" |
721 self.memory.setParam(name, value, category, security_limit, profile_key) | 721 self.memory.setParam(name, value, category, security_limit, profile_key) |
722 | 722 |
723 def isConnected(self, profile_key): | 723 def isConnected(self, profile_key): |
724 """Return connection status of profile | 724 """Return connection status of profile |
725 | |
725 @param profile_key: key_word or profile name to determine profile name | 726 @param profile_key: key_word or profile name to determine profile name |
726 @return: True if connected | 727 @return: True if connected |
727 """ | 728 """ |
728 profile = self.memory.getProfileName(profile_key) | 729 profile = self.memory.getProfileName(profile_key) |
729 if not profile: | 730 if not profile: |