优化了平衡,尤其对于向后倾倒的几种极限情况进行优化
This commit is contained in:
1 parent
10aba2664d
commit
fcb8af8163
693 files changed
+2427
-70
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#include "wifi_config.h"
|
||||
|
||||
// 配置AP(热点)模式相关参数
|
||||
const char *AP_SSID = "WLROBOT-TD";
|
||||
const char *AP_PSW = "wlrobot123";
|
||||
|
||||
IPAddress AP_IP(192, 168, 1, 11);
|
||||
IPAddress AP_GATEWAY(192, 168, 1, 11);
|
||||
IPAddress AP_SUBNET(255, 255, 255, 0);
|
||||
|
||||
|
||||
void WiFi_SetAP(void)
|
||||
{
|
||||
WiFi.mode(WIFI_AP);
|
||||
WiFi.softAPConfig(AP_IP, AP_GATEWAY, AP_SUBNET);
|
||||
WiFi.softAP(AP_SSID, AP_PSW);
|
||||
|
||||
// 启动 AP 并添加调试信息
|
||||
// if(WiFi.softAP(AP_SSID, AP_PSW)) {
|
||||
// Serial.println("AP Created Successfully!");
|
||||
// Serial.print("SSID: ");
|
||||
// Serial.println(AP_SSID);
|
||||
// Serial.print("IP Address: ");
|
||||
// Serial.println(WiFi.softAPIP());
|
||||
// Serial.print("MAC Address: ");
|
||||
// Serial.println(WiFi.softAPmacAddress());
|
||||
// } else {
|
||||
// Serial.println("AP Creation Failed!");
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user