File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -780,3 +780,13 @@ def wifi_signal(self) -> str:
780780 str: Wifi signal
781781 """
782782 return self .mqtt_client .wifi_signal ()
783+
784+ def reboot (self ) -> bool :
785+ """
786+ Reboot printer. Warning: this will reboot printer and may require
787+ manual reconnecting.
788+
789+ Returns:
790+ bool: if printer has been rebooted correctly
791+ """
792+ return self .mqtt_client .reboot ()
Original file line number Diff line number Diff line change @@ -1299,3 +1299,20 @@ def wifi_signal(self) -> str:
12991299 str: Wifi signal
13001300 """
13011301 return self .__get_print ("wifi_signal" , "" )
1302+
1303+ def reboot (self ) -> bool :
1304+ """
1305+ Reboot printer. Warning: this will reboot printer and may require
1306+ manual reconnecting.
1307+
1308+ Returns:
1309+ bool: if printer has been rebooted correctly
1310+ """
1311+ logging .warning ("Sending reboot command!" )
1312+ return self .__publish_command (
1313+ {
1314+ "system" : {
1315+ "command" : "reboot"
1316+ }
1317+ }
1318+ )
You can’t perform that action at this time.
0 commit comments