module:micropython:esp32udpclientserver:esp32udpclientserver02v03
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| module:micropython:esp32udpclientserver:esp32udpclientserver02v03 [2021/12/13 19:56] – [Benutzung] omdevelop | module:micropython:esp32udpclientserver:esp32udpclientserver02v03 [2022/09/13 11:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== Übersicht ===== | ===== Übersicht ===== | ||
| + | |||
| + | Esp32-MicroPython-Software: | ||
| + | {{: | ||
| + | |||
| ===== Benutzung ===== | ===== Benutzung ===== | ||
| Line 228: | Line 232: | ||
| return | return | ||
| # | # | ||
| - | # # | + | # |
| - | # # | + | # |
| - | # # Check UdpClientServer | + | # Check UdpClientServer |
| - | # # | + | # |
| - | # WLAN_SSID = ' | + | WLAN_SSID = ' |
| - | # WLAN_PW = ' | + | WLAN_PW = ' |
| - | # # | + | # |
| - | # UDP_HEADERID = ' | + | UDP_HEADERID = ' |
| - | # # | + | # |
| - | # # UDP - TxD - TransmitData | + | # UDP - TxD - TransmitData |
| - | # # | + | # |
| - | # # UDP_IPADDRESS_TX = ' | + | # UDP_IPADDRESS_TX = ' |
| - | # UDP_IPADDRESS_TX = ' | + | UDP_IPADDRESS_TX = ' |
| - | # UDP_IPPORT_TX = 5000 | + | UDP_IPPORT_TX = 5000 |
| - | # # | + | # |
| - | # # | + | # |
| - | # # UDP - RxD - ReceiveData | + | # UDP - RxD - ReceiveData |
| - | # # | + | # |
| - | # UDP_IPADDRESS_LOCAL = ' | + | UDP_IPADDRESS_LOCAL = ' |
| - | # UDP_IPPORT_RX = 5000 | + | UDP_IPPORT_RX = 5000 |
| - | # # | + | # |
| - | # # | + | # |
| - | # # | + | # |
| - | # # | + | # |
| - | # def CBOnTxData(udpclientserver, | + | def CBOnTxData(udpclientserver, |
| - | # Line = ' | + | Line = ' |
| - | # print(Line) | + | print(Line) |
| - | # return | + | return |
| - | # # | + | # |
| - | # def CBOnRxData(udpclientserver, | + | def CBOnRxData(udpclientserver, |
| - | # Line = ' | + | Line = ' |
| - | # print(Line) | + | print(Line) |
| - | # return | + | return |
| - | # # | + | # |
| - | # if (' | + | if (' |
| - | # # | + | # |
| - | # print(' | + | print(' |
| - | # # | + | # |
| - | # UdpCS = CUdpClientServer(WLAN_SSID, | + | UdpCS = CUdpClientServer(WLAN_SSID, |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # UdpCS.Open() | + | UdpCS.Open() |
| - | # # | + | # |
| - | # print(' | + | print(' |
| - | # | + | |
| - | # | + | |
| - | # print(' | + | print(' |
| - | # | + | |
| - | # | + | |
| - | # # | + | # |
| - | # UdpCS.Transmit(' | + | UdpCS.Transmit(' |
| - | # time.sleep(1.0) | + | time.sleep(1.0) |
| - | # UdpCS.Transmit(' | + | UdpCS.Transmit(' |
| - | # time.sleep(1.0) | + | time.sleep(1.0) |
| - | # UdpCS.Transmit(' | + | UdpCS.Transmit(' |
| - | # time.sleep(1.0) | + | time.sleep(1.0) |
| - | # # | + | # |
| - | # UdpCS.Close() | + | UdpCS.Close() |
| - | # # | + | # |
| - | # print(' | + | print(' |
| - | # # | + | # |
| # | # | ||
| </ | </ | ||
| Line 372: | Line 376: | ||
| # | # | ||
| # | # | ||
| - | </ | ||
| - | |||
| - | !!! NOCH ERGÄNZEN !!! | ||
| - | Ausgabe in Terminal: | ||
| - | <code python> | ||
| </ | </ | ||
module/micropython/esp32udpclientserver/esp32udpclientserver02v03.1639421768.txt.gz · Last modified: 2021/12/13 20:56 (external edit)