Exercises for communications. Versions for NXP FRDM K64F with not external hardware, ST NUCLEO L476RG with IDW04A1 WLAN module, ST NUCLEO L432KC with MOD WIFI ESP8266. UDP message is used for getting a timestamp from a NTP server. Ethernet: https://os.mbed.com/docs/mbed-os/v6.2/apis/ethernet.html WLAN WiFI: https://os.mbed.com/docs/mbed-os/v6.2/apis/wi-fi.html A UDP Socket: UDPSocket.open(), UDPSocket.sendto(), UDPSocket.recvfrom() Based on the OS6.2 API reference UDP Socket example https://os.mbed.com/teams/mbed_example/code/mbed-os-example-udp-sockets//file/cf516d904427/main.cpp/
mbed_app.json@5:581eb55f2eab, 2021-12-12 (annotated)
- Committer:
- timo_k2
- Date:
- Sun Dec 12 13:51:01 2021 +0000
- Revision:
- 5:581eb55f2eab
- Parent:
- 4:cbc77f552961
Made clear that there are optional pins for the Tx transmit and Rx receive in the L432KC.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
timo_k2 | 0:5da8b1a8a287 | 1 | { |
timo_k2 | 0:5da8b1a8a287 | 2 | "config": { |
timo_k2 | 0:5da8b1a8a287 | 3 | "wifi-ssid": { |
timo_k2 | 0:5da8b1a8a287 | 4 | "help": "WiFi SSID", |
timo_k2 | 3:d55adc66a997 | 5 | "value": "\"XXXXX\"" |
timo_k2 | 0:5da8b1a8a287 | 6 | }, |
timo_k2 | 0:5da8b1a8a287 | 7 | "wifi-password": { |
timo_k2 | 0:5da8b1a8a287 | 8 | "help": "WiFi Password", |
timo_k2 | 3:d55adc66a997 | 9 | "value": "\"YYYYYYY\"" |
timo_k2 | 0:5da8b1a8a287 | 10 | }, |
timo_k2 | 0:5da8b1a8a287 | 11 | "esp-rx-pin": { |
timo_k2 | 5:581eb55f2eab | 12 | "help": "ESP8266 module Tx pin, Mc Rx PB_7 or PA_10", |
timo_k2 | 5:581eb55f2eab | 13 | "value": "PB_7" |
timo_k2 | 0:5da8b1a8a287 | 14 | }, |
timo_k2 | 0:5da8b1a8a287 | 15 | "esp-tx-pin": { |
timo_k2 | 5:581eb55f2eab | 16 | "help": "ESP8266 module Rx pin, Mc Tx PB_6 or PA_9", |
timo_k2 | 5:581eb55f2eab | 17 | "value": "PB_6" |
timo_k2 | 0:5da8b1a8a287 | 18 | } |
timo_k2 | 0:5da8b1a8a287 | 19 | }, |
timo_k2 | 0:5da8b1a8a287 | 20 | "target_overrides": { |
timo_k2 | 0:5da8b1a8a287 | 21 | "*": { |
timo_k2 | 0:5da8b1a8a287 | 22 | "platform.stdio-convert-newlines": true, |
timo_k2 | 0:5da8b1a8a287 | 23 | "esp8266.provide-default" : false |
timo_k2 | 0:5da8b1a8a287 | 24 | } |
timo_k2 | 0:5da8b1a8a287 | 25 | } |
timo_k2 | 0:5da8b1a8a287 | 26 | } |