You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's analyze the example sketch. First, the necessary configurations are made:
780
777
781
-
- The UART communication is initialized at a baud rate of 9600.
778
+
- The UART communication is initialized at a baud rate of 115200.
782
779
- A loop continuously checks for available data and reads individual characters, storing them in a `String` variable.
783
780
- A newline character indicates the end of a message, triggering the processing function.
784
781
785
782
The `processData()` function is called to process the received data. This example simply prints the data to the Arduino IDE's Serial Monitor. You can modify this function to perform different actions based on the received data. Finally, the example sketch shows how to send data using the `Serial.println()` function, which transmits the string `Hello world!` every second.
786
783
787
784
You should see the following output in the Arduino IDE's Serial Monitor:
788
785
786
+

787
+
788
+
You can also send information to the Portenta C33 using the Arduino IDE's Serial Monitor. In the `Message` box of the IDE's Serial Monitor, write a message (for example, `Portenta C33`) and press Enter; you should see the following output in the Arduino IDE's Serial Monitor:
789
+
790
+

791
+
792
+
You can download the example sketch [here](assets/UARTCommunication.zip).
793
+
789
794
### Wi-Fi®
790
795
791
796
The Portenta C33 board features an onboard Wi-Fi® module, the ESP32-C3-MINI-1U module from Espressif Systems®. The ESP32-C3-MINI-1U is a low-power, highly integrated Wi-Fi® and Bluetooth® System-on-Chip (SoC) solution designed for many IoT applications.
@@ -1082,7 +1087,6 @@ void loop() {
1082
1087
}
1083
1088
```
1084
1089
1085
-
1086
1090
First, the necessary libraries are included:
1087
1091
1088
1092
- The `EthernetC33` library which contains the functionality required to communicate via Ethernet is included in the beginning.
0 commit comments