Skip to content

Commit 1241bdd

Browse files
committed
Release v2.0.0-beta4
1 parent d394392 commit 1241bdd

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

include/husarnet.h

Lines changed: 8 additions & 4 deletions
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

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Husarnet ESP32",
3-
"version": "2.0.0-beta3",
3+
"version": "2.0.0-beta4",
44
"description": "Connect your devices using secure P2P network layer for robots and IoT. Look at docs.husarnet.com for information how to configure your project!",
55
"keywords": [
66
"communication",
@@ -45,4 +45,4 @@
4545
]
4646
}
4747
]
48-
}
48+
}

0 commit comments

Comments
 (0)