WIP: Fixes, optimizations, and more Transport

Changed all time references to use decimal seconds to match Python
reference implementation.
Fixed memory issues caused by storing references to objects instead of
copies.
More implementation of Transport logic.
This is the first build that fully implements end-to-end path finding
and routing.
This commit is contained in:
attermann committed 2023-12-02 08:52:45 -07:00
1 parent ea7b4603ed
commit 642486ac7e
28 files changed
+958 -261

No files matched your search

+7
View File
@@ -37,6 +37,9 @@ Reticulum::Reticulum() : _object(new Object()) {
// Initialkize random number generator
RNG.begin("Reticulum");
// CBA TEST Transport
__transport_enabled = true;
#ifdef ARDUINO
// Stir in the Ethernet MAC address.
//byte mac[6];
@@ -154,6 +157,10 @@ Reticulum::Reticulum() : _object(new Object()) {
void Reticulum::loop() {
assert(_object);
if (!_object->_is_connected_to_shared_instance) {
RNS::Transport::loop();
}
// Perform random number gnerator housekeeping
RNG.loop();
}