updated test code for arduino
This commit is contained in:
7
arduino-example/.idea/editor.xml
generated
7
arduino-example/.idea/editor.xml
generated
@@ -244,5 +244,12 @@
|
|||||||
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" />
|
||||||
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" />
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" />
|
||||||
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/EXPORT_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INVOCABLE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/OTHER_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
|
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/REQUIRES_EXPRESSION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -12,6 +12,8 @@
|
|||||||
platform = renesas-ra
|
platform = renesas-ra
|
||||||
board = uno_r4_wifi
|
board = uno_r4_wifi
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
upload_port = /dev/ttyACM0
|
||||||
|
monitor_port = /dev/ttyACM0
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
lib_deps =
|
lib_deps =
|
||||||
WiFiS3
|
WiFiS3
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
#ifndef ARDUINO_EXAMPLE_CONFIGURE_H
|
#ifndef ARDUINO_EXAMPLE_CONFIGURE_H
|
||||||
#define ARDUINO_EXAMPLE_CONFIGURE_H
|
#define ARDUINO_EXAMPLE_CONFIGURE_H
|
||||||
|
|
||||||
#define SECRET_SSID "Strawmanbobi"
|
#define SECRET_SSID "Maomao的小房子"
|
||||||
#define SECRET_PASS "ghostcicy"
|
#define SECRET_PASS "Maomao121207"
|
||||||
|
|
||||||
#endif //ARDUINO_EXAMPLE_CONFIGURE_H
|
#endif //ARDUINO_EXAMPLE_CONFIGURE_H
|
||||||
@@ -51,11 +51,11 @@ void setup() {
|
|||||||
|
|
||||||
if (status == WL_CONNECTED) {
|
if (status == WL_CONNECTED) {
|
||||||
// If connected successfully
|
// If connected successfully
|
||||||
Serial.println("\n✅ Connection Successful!");
|
Serial.println("\nConnection Successful!");
|
||||||
printWiFiStatus();
|
printWiFiStatus();
|
||||||
} else {
|
} else {
|
||||||
// If connection failed
|
// If connection failed
|
||||||
Serial.print("\n❌ Connection Failed! Status: ");
|
Serial.print("\nConnection Failed! Status: ");
|
||||||
Serial.println(status);
|
Serial.println(status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user