mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-14 15:16:40 +00:00
- Rename eth command to eth.status for consistency with other commands - Rename generateDeviceMac to generateEthernetMac for clarity - Refactor ethernet_handle_command to return false by default - Allow new TCP clients to replace existing connections (repeater, room server, SerialEthernetInterface) - Boot companion radio without Ethernet on init failure (LoRa-only recovery mode) - Remove > prompt from ethernet CLI for consistency with serial interface - Fix variable redeclaration compile error in SerialEthernetInterface when ETHERNET_STATIC_IP is defined - Fix TCP socket leak when duplicate client detection fires - Remove dead recv_queue and adv_restart_time members from SerialEthernetInterface - Fix port numbers in docs (port 23 for repeater/room server CLI, port 5000 for companion radio) - Clarify eth.status command is only available in repeater and room server firmware Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
294 B
C
14 lines
294 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
static inline void generateEthernetMac(uint8_t mac[6]) {
|
|
uint32_t device_id = NRF_FICR->DEVICEID[0];
|
|
mac[0] = 0x02;
|
|
mac[1] = 0x92;
|
|
mac[2] = 0x1F;
|
|
mac[3] = (device_id >> 16) & 0xFF;
|
|
mac[4] = (device_id >> 8) & 0xFF;
|
|
mac[5] = device_id & 0xFF;
|
|
}
|