Update Packages' Patches

This commit is contained in:
Khoi Hoang
2022-11-09 23:44:57 -05:00
committed by GitHub
parent d78618d4b4
commit 89acc339e0
53 changed files with 9768 additions and 4553 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -54,7 +54,8 @@ class Stream : public Print
unsigned long _startMillis = 0; // used for timeout measurement unsigned long _startMillis = 0; // used for timeout measurement
int timedRead(); // read stream with timeout int timedRead(); // read stream with timeout
int timedPeek(); // peek stream with timeout int timedPeek(); // peek stream with timeout
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout int peekNextDigit(LookaheadMode lookahead,
bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
public: public:
virtual int available() = 0; virtual int available() = 0;
@@ -99,7 +100,8 @@ class Stream : public Print
return findUntil((char *)target, terminator); return findUntil((char *)target, terminator);
} }
bool findUntil(char *target, size_t targetLen, char *terminate, size_t termLen); // as above but search ends if the terminate string is found bool findUntil(char *target, size_t targetLen, char *terminate,
size_t termLen); // as above but search ends if the terminate string is found
bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen) bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen)
{ {
return findUntil((char *)target, targetLen, terminate, termLen); return findUntil((char *)target, targetLen, terminate, termLen);

View File

@@ -54,7 +54,8 @@ class Stream : public Print
unsigned long _startMillis = 0; // used for timeout measurement unsigned long _startMillis = 0; // used for timeout measurement
int timedRead(); // read stream with timeout int timedRead(); // read stream with timeout
int timedPeek(); // peek stream with timeout int timedPeek(); // peek stream with timeout
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout int peekNextDigit(LookaheadMode lookahead,
bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
public: public:
virtual int available() = 0; virtual int available() = 0;
@@ -99,7 +100,8 @@ class Stream : public Print
return findUntil((char *)target, terminator); return findUntil((char *)target, terminator);
} }
bool findUntil(char *target, size_t targetLen, char *terminate, size_t termLen); // as above but search ends if the terminate string is found bool findUntil(char *target, size_t targetLen, char *terminate,
size_t termLen); // as above but search ends if the terminate string is found
bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen) bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen)
{ {
return findUntil((char *)target, targetLen, terminate, termLen); return findUntil((char *)target, targetLen, terminate, termLen);

View File

@@ -42,7 +42,8 @@ class UDP : public Stream
{ {
public: public:
virtual uint8_t begin(uint16_t) = 0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use virtual uint8_t begin(uint16_t) =
0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
// KH, add virtual function to support Multicast, necessary for many services (MDNS, UPnP, etc.) // KH, add virtual function to support Multicast, necessary for many services (MDNS, UPnP, etc.)
virtual uint8_t beginMulticast(IPAddress, uint16_t) virtual uint8_t beginMulticast(IPAddress, uint16_t)

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> // for size_t #include <stdio.h> // for size_t
#include <stdarg.h> // for printf
#include "WString.h" #include "WString.h"
#include "Printable.h" #include "Printable.h"

View File

@@ -20,7 +20,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> // for size_t #include <stdio.h> // for size_t
#include <stdarg.h> // for printf
#include "WString.h" #include "WString.h"
#include "Printable.h" #include "Printable.h"

View File

@@ -20,7 +20,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> // for size_t #include <stdio.h> // for size_t
#include <stdarg.h> // for printf
#include "WString.h" #include "WString.h"
#include "Printable.h" #include "Printable.h"

View File

@@ -42,7 +42,8 @@ class UDP : public Stream
{ {
public: public:
virtual uint8_t begin(uint16_t) = 0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use virtual uint8_t begin(uint16_t) =
0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
virtual uint8_t beginMulticast(IPAddress, uint16_t) virtual uint8_t beginMulticast(IPAddress, uint16_t)
{ {
return 0; // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure return 0; // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure

View File

@@ -42,7 +42,8 @@ class UDP : public Stream
{ {
public: public:
virtual uint8_t begin(uint16_t) = 0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use virtual uint8_t begin(uint16_t) =
0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
virtual uint8_t beginMulticast(IPAddress, uint16_t) virtual uint8_t beginMulticast(IPAddress, uint16_t)
{ {
return 0; // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure return 0; // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure