mirror of
https://github.com/anklimov/lighthub
synced 2025-12-12 06:39:51 +03:00
OTA utils upd for data & ESP, compilation fix ESP
This commit is contained in:
@@ -108,7 +108,7 @@ bool out_UARTbridge::getConfig()
|
||||
aJsonObject * debugPortObj=aJson.getObjectItem(item->itemArg, "port");
|
||||
|
||||
if (debugIPObj)
|
||||
inet_aton(debugIPObj->valuestring, targetIP);
|
||||
_inet_aton(debugIPObj->valuestring, targetIP);
|
||||
|
||||
if (debugPortObj) targetPort = debugPortObj->valueint;
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ void ReadUniqueID( uint32_t * pdwUniqueID )
|
||||
}
|
||||
|
||||
|
||||
int inet_aton(const char* aIPAddrString, IPAddress& aResult)
|
||||
int _inet_aton(const char* aIPAddrString, IPAddress& aResult)
|
||||
{
|
||||
// See if we've been given a valid IP address
|
||||
const char* p =aIPAddrString;
|
||||
@@ -395,7 +395,7 @@ int inet_aton(const char* aIPAddrString, IPAddress& aResult)
|
||||
* @return either pointer to buf which now holds the ASCII
|
||||
* representation of addr or NULL if buf was too small
|
||||
*/
|
||||
char *inet_ntoa_r(IPAddress addr, char *buf, int buflen)
|
||||
char *_inet_ntoa_r(IPAddress addr, char *buf, int buflen)
|
||||
{
|
||||
short n;
|
||||
char intbuf[4];
|
||||
|
||||
Reference in New Issue
Block a user