Skip to content
Merged
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
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ rns_fetch(arxtypetraits RNS_ARXTYPETRAITS_SOURCE_DIR https://github.com/hideak
rns_fetch(debuglog RNS_DEBUGLOG_SOURCE_DIR https://github.com/hideakitai/DebugLog.git v0.8.4)
# Crypto and microStore have no upstream tags suitable for pinning, so pin commit SHAs.
# Refresh by running `git ls-remote <url> HEAD` and updating the hex below.
rns_fetch(crypto RNS_CRYPTO_SOURCE_DIR https://github.com/attermann/Crypto.git 984dc891330986c302a86c4e312d4f5abcc28359)
rns_fetch(microstore RNS_MICROSTORE_SOURCE_DIR https://github.com/attermann/microStore.git c5fb69d68229e684c7fbd17692a67ae8193b84e2)
rns_fetch(crypto RNS_CRYPTO_SOURCE_DIR https://github.com/attermann/Crypto.git)
rns_fetch(microstore RNS_MICROSTORE_SOURCE_DIR https://github.com/attermann/microStore.git)

# -----------------------------------------------------------------------------
# Third-party targets that don't ship CMakeLists.txt
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "microReticulum",
"version": "0.4.1",
"version": "0.4.2",
"description": "C++ port of the Reticulum Network Stack — a cryptographic mesh networking library that runs on both 32-bit+ microcontrollers (ESP32, nRF52, LoRa boards) and native platforms (Linux, macOS), with PlatformIO and CMake build support.",
"keywords": "reticulum, rns, mesh, embedded, mcu, esp32, nrf52, native",
"repository":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=microReticulum
version=0.4.1
version=0.4.2
author=Chad Attermann <attermann@gmail.com>
maintainer=Chad Attermann <attermann@gmail.com>
sentence=C++ port of the Reticulum Network Stack
Expand Down
2 changes: 1 addition & 1 deletion src/microReticulum/Provisioning/BuiltinNamespaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "../Reticulum.h"
#include "../Transport.h"
#include "../Utilities/Memory.h"
#include "../Utilities/tlsf.h"
#include "../Utilities/tlsf/tlsf.h"

#include <set>
#include <vector>
Expand Down
13 changes: 13 additions & 0 deletions src/microReticulum/Provisioning/Ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ namespace RNS { namespace Provisioning {
constexpr uint16_t FirmwareVersion = 1;
constexpr uint16_t SchemaVersion = 2;
constexpr uint16_t NeedsRebootInfo = 3;
constexpr uint16_t SchemaHash = 4; // CRC32 of serialized GetSchema response bytes

// GetCapabilities
constexpr uint16_t Namespaces = 1;
Expand All @@ -103,6 +104,18 @@ namespace RNS { namespace Provisioning {
constexpr uint16_t FieldDefault = 12;
constexpr uint16_t FieldElementSize = 13; // BytesList: required size per entry
constexpr uint16_t FieldMaxCount = 14; // BytesList: max number of entries

// Per-request compression negotiation. Clients set ReqCompress=true
// in the request payload map to ask the server to compress the
// response. When the server complies, the response payload becomes
// a single-entry map { CompressedPayload: <bin> } whose value is
// heatshrink-compressed bytes that decompress to the original
// MsgPack-encoded payload. Servers always pick the smaller wire
// form and may send an uncompressed payload even when compression
// was requested (tiny payloads where the wrapper overhead exceeds
// the savings).
constexpr uint16_t ReqCompress = 100;
constexpr uint16_t CompressedPayload = 101;
}

} }
Loading
Loading