@@ -64,7 +64,6 @@ void setup() {
64
64
#endif
65
65
66
66
LOGI (TAG, " SafeBoot Version: %s" , __COMPILED_APP_VERSION__);
67
- LOGI (TAG, " Chip ID: %s" , getChipIDStr ().c_str ());
68
67
69
68
// Set next boot partition
70
69
const esp_partition_t * partition = esp_partition_find_first (esp_partition_type_t ::ESP_PARTITION_TYPE_APP, esp_partition_subtype_t ::ESP_PARTITION_SUBTYPE_APP_OTA_0, nullptr );
@@ -105,7 +104,7 @@ void setup() {
105
104
106
105
espConnect.listen ([](Mycila::ESPConnect::State previous, Mycila::ESPConnect::State state) {
107
106
if (state == Mycila::ESPConnect::State::NETWORK_TIMEOUT) {
108
- LOGW (TAG, " Connect timeout! Starting AP mode instead ..." );
107
+ LOGW (TAG, " Connect timeout! Starting AP mode..." );
109
108
// if ETH DHCP times out, we start AP mode
110
109
espConnectConfig.apMode = true ;
111
110
espConnect.setConfig (espConnectConfig);
@@ -115,19 +114,18 @@ void setup() {
115
114
// connect...
116
115
espConnect.begin (espConnectConfig.hostname .c_str (), " " , espConnectConfig);
117
116
118
- LOGI (TAG, " Connected to network!" );
119
117
LOGI (TAG, " IP Address: %s" , espConnect.getIPAddress ().toString ().c_str ());
120
118
LOGI (TAG, " Hostname: %s" , espConnect.getHostname ().c_str ());
121
119
if (espConnect.getWiFiSSID ().length ()) {
122
- LOGI (TAG, " WiFi SSID: %s" , espConnect.getWiFiSSID ().c_str ());
120
+ LOGI (TAG, " SSID: %s" , espConnect.getWiFiSSID ().c_str ());
123
121
}
124
122
if (espConnectConfig.apMode ) {
125
123
LOGI (TAG, " Access Point: %s" , espConnect.getAccessPointSSID ().c_str ());
126
124
}
127
125
128
- // starte http
129
- LOGI (TAG, " Starting HTTP server..." );
126
+ // start http
130
127
webServer.begin ();
128
+ LOGI (TAG, " Web Server started" );
131
129
132
130
#ifndef MYCILA_SAFEBOOT_NO_MDNS
133
131
// Start mDNS
@@ -136,13 +134,11 @@ void setup() {
136
134
#endif
137
135
138
136
// Start OTA
139
- LOGI (TAG, " Starting OTA server..." );
140
137
ArduinoOTA.setHostname (espConnectConfig.hostname .c_str ());
141
138
ArduinoOTA.setRebootOnSuccess (true );
142
139
ArduinoOTA.setMdnsEnabled (true );
143
140
ArduinoOTA.begin ();
144
-
145
- LOGI (TAG, " Done!" );
141
+ LOGI (TAG, " Arduino OTA Server started on port 3232" );
146
142
}
147
143
148
144
void loop () {
0 commit comments