Add missing member variables for token expiration and reconnection tracking
This commit is contained in:
1 parent
b04a1a1dc6
commit
453c4184c3
2 files changed
+11
-1
No files matched your search
@@ -723,7 +723,6 @@ void MQTTBridge::publishPacket(mesh::Packet* packet, bool is_tx,
|
||||
float snr, float rssi) {
|
||||
if (!packet) return;
|
||||
|
||||
<<<<<<< HEAD
|
||||
// Size-adaptive buffer: estimate needed size based on packet size
|
||||
// Most packets are <100 bytes (need ~400 byte JSON), large packets need ~1500 bytes
|
||||
int packet_size = packet->getRawLength();
|
||||
|
||||
@@ -121,6 +121,17 @@ private:
|
||||
char _auth_token_eu[768]; // JWT token for EU server authentication (increased for owner/client fields)
|
||||
char _analyzer_username[70]; // Username in format v1_{UPPERCASE_PUBLIC_KEY}
|
||||
|
||||
// Token expiration tracking
|
||||
unsigned long _token_us_expires_at;
|
||||
unsigned long _token_eu_expires_at;
|
||||
unsigned long _last_token_renewal_attempt_us;
|
||||
unsigned long _last_token_renewal_attempt_eu;
|
||||
unsigned long _last_reconnect_attempt_us;
|
||||
unsigned long _last_reconnect_attempt_eu;
|
||||
|
||||
// Status publish retry tracking
|
||||
unsigned long _last_status_retry;
|
||||
|
||||
// Device identity for JWT token creation
|
||||
mesh::LocalIdentity *_identity;
|
||||
|
||||
|
||||
Reference in new issue
Block a user