opsoro.preferences¶
This module defines the interface for communicating with the settings of the robot.
-
class
opsoro.preferences.
_Preferences
[source]¶ Bases:
object
-
apply_prefs
(update_audio=False, update_wireless=False, restart_wireless=False, update_dns=False)[source]¶ Apply preferences to the system.
Parameters: - update_audio (bool) – True if audio settings have changed and needs to update.
- update_wireless (bool) – True if wireless settings have changed and the wireless interface needs to update.
- restart_wireless (bool) – True if wireless settings have changed and the wireless interface needs to restart.
- update_dns (bool) – True if DNS settings have changed and needs to update.
-
-
opsoro.preferences.
constrain
(n, minn, maxn)¶