Skip to content

Commit efb683f

Browse files
committed
Release v2.0.0-beta4
1 parent 2765adb commit efb683f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Husarnet ESP32
2-
version=2.0.0-beta3
2+
version=2.0.0-beta4
33
author=Husarnet
44
maintainer=Milosz Lagan, [email protected]
55
sentence=Connect your devices using secure P2P network layer for robots and IoT.

src/husarnet.h

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#pragma once
22

3+
#if defined(ARDUINO)
4+
#if !defined(ARDUINO_ARCH_ESP32)
5+
#error "This library only supports boards from the ESP32 family."
6+
#elif ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 0, 3)
7+
#error "This library requires ESP32 Arduino Core version 3.0.3 or newer. Please upgrade your board/platform."
8+
#endif
9+
#endif
10+
311
// User-facing API is defined in the
412
// "husarnet/port/esp32/user_interface.h" header
513
// in the included Husarnet submodule.
614
#include "husarnet/ports/esp32/user_interface.h"
7-
8-
#if defined(ARDUINO) && !defined(ARDUINO_ARCH_ESP32)
9-
#error "This library only supports boards from the ESP32 family."
10-
#endif

0 commit comments

Comments
 (0)