Tue, 06 May 2025 15:32:29 +0200
Various changes and optimizations to the MicroPython support.
9878 | 1 | <!DOCTYPE html> |
2 | <html><head> | |
3 | <title>eric7.MicroPython.EthernetDialogs.EthernetController</title> | |
4 | <meta charset="UTF-8"> | |
5 | <link rel="stylesheet" href="styles.css"> | |
6 | </head> | |
7 | <body> | |
8 | <a NAME="top" ID="top"></a> | |
9 | <h1>eric7.MicroPython.EthernetDialogs.EthernetController</h1> | |
10 | <p> | |
11 | Module implementing the Ethernet related functionality. | |
12 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
13 | |
9878 | 14 | <h3>Global Attributes</h3> |
15 | <table> | |
16 | <tr><td>None</td></tr> | |
17 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
18 | |
9878 | 19 | <h3>Classes</h3> |
20 | <table> | |
21 | <tr> | |
22 | <td><a href="#EthernetController">EthernetController</a></td> | |
23 | <td>Class implementing the Ethernet related functionality.</td> | |
24 | </tr> | |
25 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
26 | |
9878 | 27 | <h3>Functions</h3> |
28 | <table> | |
29 | <tr><td>None</td></tr> | |
30 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
31 | |
9878 | 32 | <hr /> |
33 | <hr /> | |
34 | <a NAME="EthernetController" ID="EthernetController"></a> | |
35 | <h2>EthernetController</h2> | |
36 | <p> | |
37 | Class implementing the Ethernet related functionality. | |
38 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
39 | |
9878 | 40 | <h3>Derived from</h3> |
41 | QObject | |
42 | <h3>Class Attributes</h3> | |
43 | <table> | |
44 | <tr><td>None</td></tr> | |
45 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
46 | |
9878 | 47 | <h3>Class Methods</h3> |
48 | <table> | |
49 | <tr><td>None</td></tr> | |
50 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
51 | |
9878 | 52 | <h3>Methods</h3> |
53 | <table> | |
54 | <tr> | |
55 | <td><a href="#EthernetController.__init__">EthernetController</a></td> | |
56 | <td>Constructor</td> | |
57 | </tr> | |
58 | <tr> | |
59 | <td><a href="#EthernetController.__checkInternet">__checkInternet</a></td> | |
60 | <td>Private slot to check the availability of an internet connection.</td> | |
61 | </tr> | |
62 | <tr> | |
63 | <td><a href="#EthernetController.__connectLan">__connectLan</a></td> | |
64 | <td>Private method to connect the connected device to the LAN.</td> | |
65 | </tr> | |
66 | <tr> | |
67 | <td><a href="#EthernetController.__connectLanDhcp">__connectLanDhcp</a></td> | |
68 | <td>Private slot to connect to the LAN with a dynamic IPv4 address (DHCP mode).</td> | |
69 | </tr> | |
70 | <tr> | |
71 | <td><a href="#EthernetController.__connectLanIp">__connectLanIp</a></td> | |
72 | <td>Private slot to connect to the LAN with a fixed IPv4 address (fixed address mode).</td> | |
73 | </tr> | |
74 | <tr> | |
75 | <td><a href="#EthernetController.__deactivateEthernet">__deactivateEthernet</a></td> | |
76 | <td>Private slot to deactivate the Ethernet interface.</td> | |
77 | </tr> | |
78 | <tr> | |
79 | <td><a href="#EthernetController.__disconnectLan">__disconnectLan</a></td> | |
80 | <td>Private slot to disconnect from the LAN.</td> | |
81 | </tr> | |
82 | <tr> | |
11270
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
83 | <td><a href="#EthernetController.__disconnectedFromDevice">__disconnectedFromDevice</a></td> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
84 | <td>Private slot handling disconnection from a device.</td> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
85 | </tr> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
86 | <tr> |
9878 | 87 | <td><a href="#EthernetController.__removeAutoConnect">__removeAutoConnect</a></td> |
88 | <td>Private slot to remove the boot time connect capability.</td> | |
89 | </tr> | |
90 | <tr> | |
91 | <td><a href="#EthernetController.__setNetworkTime">__setNetworkTime</a></td> | |
92 | <td>Private slot to synchronize the device clock to network time.</td> | |
93 | </tr> | |
94 | <tr> | |
95 | <td><a href="#EthernetController.__showEthernetStatus">__showEthernetStatus</a></td> | |
96 | <td>Private slot to show a dialog with the WiFi status of the current device.</td> | |
97 | </tr> | |
98 | <tr> | |
99 | <td><a href="#EthernetController.__writeAutoConnect">__writeAutoConnect</a></td> | |
100 | <td>Private slot to generate a script and associated configuration to connect the device during boot time.</td> | |
101 | </tr> | |
102 | <tr> | |
103 | <td><a href="#EthernetController.createMenu">createMenu</a></td> | |
104 | <td>Public method to create the Ethernet submenu.</td> | |
105 | </tr> | |
106 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
107 | |
9878 | 108 | <h3>Static Methods</h3> |
109 | <table> | |
110 | <tr><td>None</td></tr> | |
111 | </table> | |
112 | ||
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
113 | |
9878 | 114 | <a NAME="EthernetController.__init__" ID="EthernetController.__init__"></a> |
115 | <h4>EthernetController (Constructor)</h4> | |
116 | <b>EthernetController</b>(<i>microPython, parent=None</i>) | |
117 | <p> | |
118 | Constructor | |
119 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
120 | |
9878 | 121 | <dl> |
122 | ||
123 | <dt><i>microPython</i> (MicroPythonWidgep)</dt> | |
124 | <dd> | |
125 | reference to the MicroPython widget | |
126 | </dd> | |
127 | <dt><i>parent</i> (QObject (optional))</dt> | |
128 | <dd> | |
129 | reference to the parent object (defaults to None) | |
130 | </dd> | |
131 | </dl> | |
132 | <a NAME="EthernetController.__checkInternet" ID="EthernetController.__checkInternet"></a> | |
133 | <h4>EthernetController.__checkInternet</h4> | |
134 | <b>__checkInternet</b>(<i></i>) | |
135 | <p> | |
136 | Private slot to check the availability of an internet connection. | |
137 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
138 | |
9878 | 139 | <a NAME="EthernetController.__connectLan" ID="EthernetController.__connectLan"></a> |
140 | <h4>EthernetController.__connectLan</h4> | |
10153 | 141 | <b>__connectLan</b>(<i>config, hostname</i>) |
9878 | 142 | <p> |
143 | Private method to connect the connected device to the LAN. | |
144 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
145 | |
9878 | 146 | <dl> |
147 | ||
148 | <dt><i>config</i> (str of tuple of (str, str, str, str))</dt> | |
149 | <dd> | |
150 | configuration for the connection (either the string 'dhcp' | |
151 | for a dynamic address or a tuple of four strings with the IPv4 parameters. | |
152 | </dd> | |
10153 | 153 | <dt><i>hostname</i> (str)</dt> |
154 | <dd> | |
155 | host name of the device | |
156 | </dd> | |
9878 | 157 | </dl> |
158 | <a NAME="EthernetController.__connectLanDhcp" ID="EthernetController.__connectLanDhcp"></a> | |
159 | <h4>EthernetController.__connectLanDhcp</h4> | |
160 | <b>__connectLanDhcp</b>(<i></i>) | |
161 | <p> | |
162 | Private slot to connect to the LAN with a dynamic IPv4 address (DHCP mode). | |
163 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
164 | |
9878 | 165 | <a NAME="EthernetController.__connectLanIp" ID="EthernetController.__connectLanIp"></a> |
166 | <h4>EthernetController.__connectLanIp</h4> | |
167 | <b>__connectLanIp</b>(<i></i>) | |
168 | <p> | |
169 | Private slot to connect to the LAN with a fixed IPv4 address (fixed address | |
170 | mode). | |
171 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
172 | |
9878 | 173 | <a NAME="EthernetController.__deactivateEthernet" ID="EthernetController.__deactivateEthernet"></a> |
174 | <h4>EthernetController.__deactivateEthernet</h4> | |
175 | <b>__deactivateEthernet</b>(<i></i>) | |
176 | <p> | |
177 | Private slot to deactivate the Ethernet interface. | |
178 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
179 | |
9878 | 180 | <a NAME="EthernetController.__disconnectLan" ID="EthernetController.__disconnectLan"></a> |
181 | <h4>EthernetController.__disconnectLan</h4> | |
182 | <b>__disconnectLan</b>(<i></i>) | |
183 | <p> | |
184 | Private slot to disconnect from the LAN. | |
185 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
186 | |
11270
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
187 | <a NAME="EthernetController.__disconnectedFromDevice" ID="EthernetController.__disconnectedFromDevice"></a> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
188 | <h4>EthernetController.__disconnectedFromDevice</h4> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
189 | <b>__disconnectedFromDevice</b>(<i></i>) |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
190 | <p> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
191 | Private slot handling disconnection from a device. |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
192 | </p> |
0e220c26e60e
Various changes and optimizations to the MicroPython support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
193 | |
9878 | 194 | <a NAME="EthernetController.__removeAutoConnect" ID="EthernetController.__removeAutoConnect"></a> |
195 | <h4>EthernetController.__removeAutoConnect</h4> | |
196 | <b>__removeAutoConnect</b>(<i></i>) | |
197 | <p> | |
198 | Private slot to remove the boot time connect capability. | |
199 | </p> | |
200 | <p> | |
201 | This will not remove the auto-connect part of the boot script. This needs to be | |
202 | done manually if desired. | |
203 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
204 | |
9878 | 205 | <a NAME="EthernetController.__setNetworkTime" ID="EthernetController.__setNetworkTime"></a> |
206 | <h4>EthernetController.__setNetworkTime</h4> | |
207 | <b>__setNetworkTime</b>(<i></i>) | |
208 | <p> | |
209 | Private slot to synchronize the device clock to network time. | |
210 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
211 | |
9878 | 212 | <a NAME="EthernetController.__showEthernetStatus" ID="EthernetController.__showEthernetStatus"></a> |
213 | <h4>EthernetController.__showEthernetStatus</h4> | |
214 | <b>__showEthernetStatus</b>(<i></i>) | |
215 | <p> | |
216 | Private slot to show a dialog with the WiFi status of the current device. | |
217 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
218 | |
9878 | 219 | <a NAME="EthernetController.__writeAutoConnect" ID="EthernetController.__writeAutoConnect"></a> |
220 | <h4>EthernetController.__writeAutoConnect</h4> | |
221 | <b>__writeAutoConnect</b>(<i></i>) | |
222 | <p> | |
223 | Private slot to generate a script and associated configuration to connect the | |
224 | device during boot time. | |
225 | </p> | |
226 | <p> | |
227 | This will also modify the boot script to perform the automatic connection. | |
228 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
229 | |
9878 | 230 | <a NAME="EthernetController.createMenu" ID="EthernetController.createMenu"></a> |
231 | <h4>EthernetController.createMenu</h4> | |
232 | <b>createMenu</b>(<i>menu</i>) | |
233 | <p> | |
234 | Public method to create the Ethernet submenu. | |
235 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
236 | |
9878 | 237 | <dl> |
238 | ||
239 | <dt><i>menu</i> (QMenu)</dt> | |
240 | <dd> | |
241 | reference to the parent menu | |
242 | </dd> | |
243 | </dl> | |
244 | <dl> | |
245 | <dt>Return:</dt> | |
246 | <dd> | |
247 | reference to the created menu | |
248 | </dd> | |
249 | </dl> | |
250 | <dl> | |
251 | <dt>Return Type:</dt> | |
252 | <dd> | |
253 | QMenu | |
254 | </dd> | |
255 | </dl> | |
256 | <div align="right"><a href="#top">Up</a></div> | |
257 | <hr /> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10153
diff
changeset
|
258 | </body></html> |