212 @pyqtSlot() |
212 @pyqtSlot() |
213 def __stopAccessPoint(self): |
213 def __stopAccessPoint(self): |
214 """ |
214 """ |
215 Private slot to stop the Access Point interface of the connected device. |
215 Private slot to stop the Access Point interface of the connected device. |
216 """ |
216 """ |
217 # TODO: not implemented yet |
217 ok, err = self.__mpy.getDevice().stopAccessPoint() |
218 pass |
218 if ok: |
|
219 EricMessageBox.information( |
|
220 None, |
|
221 self.tr("Stop WiFi Access Point"), |
|
222 self.tr("The WiFi Access Point interface was stopped successfully."), |
|
223 ) |
|
224 else: |
|
225 msg = self.tr("<p>The WiFi Access Point could not be stopped.</p>") |
|
226 if err: |
|
227 msg += self.tr("<p>Reason: {0}").format(err) |
|
228 EricMessageBox.critical( |
|
229 None, |
|
230 self.tr("Stop WiFi Access Point"), |
|
231 msg, |
|
232 ) |
219 |
233 |
220 @pyqtSlot() |
234 @pyqtSlot() |
221 def __showConnectedClients(self): |
235 def __showConnectedClients(self): |
222 """ |
236 """ |
223 Private slot to show a list of WiFi clients connected to the Access Point |
237 Private slot to show a list of WiFi clients connected to the Access Point |
232 |
246 |
233 @param interface designation of the interface to be deactivated (one of 'AP' |
247 @param interface designation of the interface to be deactivated (one of 'AP' |
234 or 'STA') |
248 or 'STA') |
235 @type str |
249 @type str |
236 """ |
250 """ |
237 # TODO: not implemented yet |
251 ok, err = self.__mpy.getDevice().deactivateInterface(interface) |
238 pass |
252 if ok: |
|
253 EricMessageBox.information( |
|
254 None, |
|
255 self.tr("Deactivate WiFi Interface"), |
|
256 self.tr("The WiFi interface was deactivated successfully."), |
|
257 ) |
|
258 else: |
|
259 msg = self.tr("<p>The WiFi interface could not be deactivated.</p>") |
|
260 if err: |
|
261 msg += self.tr("<p>Reason: {0}").format(err) |
|
262 EricMessageBox.critical( |
|
263 None, |
|
264 self.tr("Deactivate WiFi Interface"), |
|
265 msg, |
|
266 ) |