Opraven i header.
This commit is contained in:
parent
f4f8915197
commit
242238a1f0
@ -2,7 +2,7 @@
|
||||
* @file WiFiConfig.h
|
||||
* @author Pavel Brychta, http://www.xpablo.cz
|
||||
*
|
||||
* Copyright (c) 2015,16,17 Pavel Brychta. All rights reserved.
|
||||
* Copyright (c) 2015-18 Pavel Brychta. All rights reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -24,6 +24,7 @@
|
||||
* 1. Pokud je forceConfigure ==0, tak se aktivuje WiFi v rezimu AP a cele ESP je mozne nastavit webovym rozhranim (pocitam s prenosem hodnoty nouzoveho tlacitka pri startu).
|
||||
* 2. Neni-li tlacitko stisknute, tak se vezme rezim prace a AP se nastavi dle nej (WIFI_STA a WIFI_AP)
|
||||
* 3. Pokud byl rezim prace WIFI_STA a ESP se nepripoji k zadne siti do casu WIFI_STA_CONNECT_TIMEOUT, tak se pokracuje jako kdyby bylo stisknute rekonfiguracni tlacitko
|
||||
* Podrobnejsi informace o upravach chovani v jednotlivych verzich jsou v zahlavi .cpp souboru.
|
||||
*/
|
||||
|
||||
#ifndef __WiFiConfig_h__
|
||||
@ -93,7 +94,7 @@ typedef void (*storeparam_cb)(const char *newvalue); // callback pro ulozeni uzi
|
||||
* \param [in] len Delka retezce
|
||||
* \return Vycteny retezec
|
||||
*/
|
||||
String getEEPROMString(int start, int len);
|
||||
String getEEPROMString(unsigned int start, size_t len);
|
||||
|
||||
/**
|
||||
* \brief Ulozeni retezce do EEPROM
|
||||
@ -102,7 +103,7 @@ String getEEPROMString(int start, int len);
|
||||
* \param [in] len Maximalni delka ulozeneho retezce
|
||||
* \param [in] string Ukladany retezec
|
||||
*/
|
||||
void setEEPROMString(int start, int len, String string);
|
||||
void setEEPROMString(unsigned int start, size_t len, String string);
|
||||
|
||||
/**
|
||||
* \brief Ziskani nasi ip adresy
|
||||
@ -121,8 +122,21 @@ IPAddress getOurIP(void);
|
||||
*/
|
||||
uint8_t * getOurMAC(uint8_t *mac);
|
||||
|
||||
/**
|
||||
* @brief Ziskani 32 bitoveho cisla z EEPROM
|
||||
*
|
||||
* @param[in] start Pocatecni adresa, ze ktere se ziskava cislo.
|
||||
*
|
||||
* @return Ziskane cislo.
|
||||
*/
|
||||
uint32_t getEEPROMuint32(int start);
|
||||
|
||||
/**
|
||||
* @brief Ulozeni 32 bitoveho cisla do EEPROM
|
||||
*
|
||||
* @param[in] start Pocatecni adresa, kam cislo ukladame.
|
||||
* @param[in] val Ukladana hodnota
|
||||
*/
|
||||
void setEEPROMuint32(int start, uint32_t val);
|
||||
|
||||
extern char WiFiDeviceName[]; // jmeno zarizeni, pouzivane i pro DHCP
|
||||
|
Loading…
Reference in New Issue
Block a user