OTA Library adjust (#10627)
* feat(ota): library revision * feat(ota): license * feat(ota): license addtion * feat(ota): license addition into example
This commit is contained in:
parent
1cdd8e8ce0
commit
f0ded24b3f
4 changed files with 64 additions and 1 deletions
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <ESPmDNS.h>
|
#include <ESPmDNS.h>
|
||||||
#include <NetworkUdp.h>
|
#include <NetworkUdp.h>
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,40 @@
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
ArduinoOTA KEYWORD1
|
ArduinoOTA KEYWORD1
|
||||||
|
ArduinoOTAClass KEYWORD1
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Methods and Functions (KEYWORD2)
|
# Methods and Functions (KEYWORD2)
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
begin KEYWORD2
|
begin KEYWORD2
|
||||||
setup KEYWORD2
|
end KEYWORD2
|
||||||
handle KEYWORD2
|
handle KEYWORD2
|
||||||
onStart KEYWORD2
|
onStart KEYWORD2
|
||||||
onEnd KEYWORD2
|
onEnd KEYWORD2
|
||||||
onError KEYWORD2
|
onError KEYWORD2
|
||||||
onProgress KEYWORD2
|
onProgress KEYWORD2
|
||||||
|
setPort KEYWORD2
|
||||||
|
setHostname KEYWORD2
|
||||||
|
getHostname KEYWORD2
|
||||||
|
setPassword KEYWORD2
|
||||||
|
setPasswordHash KEYWORD2
|
||||||
|
setPartitionLabel KEYWORD2
|
||||||
|
getPartitionLabel KEYWORD2
|
||||||
|
setRebootOnSuccess KEYWORD2
|
||||||
|
setMdnsEnabled KEYWORD2
|
||||||
|
getCommand KEYWORD2
|
||||||
|
setTimeout KEYWORD2
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Constants (LITERAL1)
|
# Constants (LITERAL1)
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
|
OTA_IDLE LITERAL1
|
||||||
|
OTA_WAITAUTH LITERAL1
|
||||||
|
OTA_RUNUPDATE LITERAL1
|
||||||
|
OTA_AUTH_ERROR LITERAL1
|
||||||
|
OTA_BEGIN_ERROR LITERAL1
|
||||||
|
OTA_CONNECT_ERROR LITERAL1
|
||||||
|
OTA_RECEIVE_ERROR LITERAL1
|
||||||
|
OTA_END_ERROR LITERAL1
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
#ifndef LWIP_OPEN_SRC
|
#ifndef LWIP_OPEN_SRC
|
||||||
#define LWIP_OPEN_SRC
|
#define LWIP_OPEN_SRC
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
#ifndef __ARDUINO_OTA_H
|
#ifndef __ARDUINO_OTA_H
|
||||||
#define __ARDUINO_OTA_H
|
#define __ARDUINO_OTA_H
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue