minor changes

This commit is contained in:
tuxphone 2024-05-21 20:02:20 +02:00
parent baf4d5492f
commit ae9800c96c
2 changed files with 10 additions and 4 deletions

View File

@ -1,13 +1,14 @@
#include <main.h> #include <main.h>
void setup() { void setup() {
msgID.clear();
txQueue.clear();
NodeDB.clear();
#ifndef SILENT #ifndef SILENT
Serial.begin(115200); Serial.begin(115200);
#endif #endif
msgID.clear();
txQueue.clear();
NodeDB.clear();
MSG("[INF][CryptoEngine]Initializing ... "); MSG("[INF][CryptoEngine]Initializing ... ");
memcpy(psk.bytes, mypsk, sizeof(mypsk)); memcpy(psk.bytes, mypsk, sizeof(mypsk));
psk.length = sizeof(psk.bytes); psk.length = sizeof(psk.bytes);

View File

@ -1,7 +1,7 @@
#include <Arduino.h> #include <Arduino.h>
// #define SILENT // turn off serial output // #define SILENT // turn off serial output
#define CC_MY_NODE_NUM 0xC00BCE11
#define CC_MY_REGION meshtastic_Config_LoRaConfig_RegionCode_EU_868 // see regions[] below #define CC_MY_REGION meshtastic_Config_LoRaConfig_RegionCode_EU_868 // see regions[] below
#define CC_MY_LORA_PRESET meshtastic_Config_LoRaConfig_ModemPreset_LONG_FAST // LONG FAST is default preset #define CC_MY_LORA_PRESET meshtastic_Config_LoRaConfig_ModemPreset_LONG_FAST // LONG FAST is default preset
#define CC_LORA_USE_PRESET true // set true to use modem preset #define CC_LORA_USE_PRESET true // set true to use modem preset
@ -19,6 +19,11 @@
#define MAX_NODE_LIST 20 // number of stored known nodes #define MAX_NODE_LIST 20 // number of stored known nodes
#define MAX_TX_QUEUE 8 // max number of packets which can be waiting for transmission #define MAX_TX_QUEUE 8 // max number of packets which can be waiting for transmission
#define MAX_RHPACKETLEN 256 #define MAX_RHPACKETLEN 256
#define PACKET_FLAGS_HOP_LIMIT_MASK 0x07
#define PACKET_FLAGS_WANT_ACK_MASK 0x08
#define PACKET_FLAGS_VIA_MQTT_MASK 0x10
#define PACKET_FLAGS_HOP_START_MASK 0xE0
#define PACKET_FLAGS_HOP_START_SHIFT 5
/// 16 bytes of random PSK for our _public_ default channel that all devices power up on (AES128) /// 16 bytes of random PSK for our _public_ default channel that all devices power up on (AES128)
/// Meshtastic default key (AQ==): /// Meshtastic default key (AQ==):