Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions RNode_Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <Transport.h>
#include <Reticulum.h>
#include <Interface.h>
#include <AutoInterface.h>
#include <Log.h>
#include <Bytes.h>
#include <queue>
Expand Down Expand Up @@ -222,6 +223,8 @@ void on_transmit_packet(const RNS::Bytes& raw, const RNS::Interface& interface)
// CBA RNS
RNS::Reticulum reticulum(RNS::Type::NONE);
RNS::Interface lora_interface(RNS::Type::NONE);
AutoInterface* auto_interface_impl = nullptr;
RNS::Interface* auto_interface = nullptr;
RNS::FileSystem filesystem(RNS::Type::NONE);
#endif // HAS_RNS

Expand Down Expand Up @@ -580,6 +583,18 @@ void setup() {
lora_interface.mode(RNS::Type::Interface::MODE_GATEWAY);
RNS::Transport::register_interface(lora_interface);

#if HAS_WIFI
INFO("Initializing AutoInterface (IPv6 peer discovery)...");
auto_interface_impl = new AutoInterface("Auto");
auto_interface = new RNS::Interface(auto_interface_impl);
if (!auto_interface->start()) {
ERROR("Failed to initialize AutoInterface!");
} else {
INFO("AutoInterface started");
RNS::Transport::register_interface(*auto_interface);
}
#endif

HEAD("Creating Reticulum instance...", RNS::LOG_TRACE);
reticulum = RNS::Reticulum();
reticulum.transport_enabled(op_mode == MODE_TNC);
Expand Down
1 change: 1 addition & 0 deletions lib/auto_interface/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto_config.h
Loading