new Heltec_v3_companion_radio_wifi target

This commit is contained in:
Florent de Lamotte committed 2025-03-03 13:26:37 +01:00
1 parent 75a8c8a7d9
commit 4aa925eada
4 files changed
+179 -2

No files matched your search

+11 -2
View File
@@ -1081,7 +1081,13 @@ public:
};
#ifdef ESP32
#ifdef BLE_PIN_CODE
#ifdef WIFI_SSID
#include <helpers/esp32/SerialWifiInterface.h>
SerialWifiInterface serial_interface;
#ifndef TCP_PORT
#define TCP_PORT 5000
#endif
#elif defined(BLE_PIN_CODE)
#include <helpers/esp32/SerialBLEInterface.h>
SerialBLEInterface serial_interface;
#else
@@ -1170,7 +1176,10 @@ void setup() {
SPIFFS.begin(true);
the_mesh.begin(SPIFFS, trng);
#ifdef BLE_PIN_CODE
#ifdef WIFI_SSID
WiFi.begin(WIFI_SSID, WIFI_PWD);
serial_interface.begin(TCP_PORT);
#elif defined(BLE_PIN_CODE)
char dev_name[32+10];
sprintf(dev_name, "MeshCore-%s", the_mesh.getNodeName());
serial_interface.begin(dev_name, BLE_PIN_CODE);