1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-08 17:02:26 +03:00

- Use the new Crypto, TypeConversion and random() functionality added to the Arduino core, instead of the versions local to the mesh library.

- Rearrange class variables to minimize storage padding.

- Add protected getters for EspnowMeshBackend and MeshBackendBase components.

- Partially update README.md
This commit is contained in:
Anders
2020-05-18 22:09:34 +02:00
parent 595fb23128
commit f059e57322
34 changed files with 210 additions and 1573 deletions

View File

@ -25,6 +25,7 @@
#include "UtilityFunctions.h"
#include <esp8266_peri.h>
#include <Esp.h>
namespace MeshUtilityFunctions
{
@ -43,7 +44,7 @@ namespace MeshUtilityFunctions
uint64_t randomUint64()
{
return (((uint64_t)RANDOM_REG32 << 32) | (uint64_t)RANDOM_REG32);
return (((uint64_t)ESP.random() << 32) | (uint64_t)ESP.random());
}
template <typename T>