Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit a5fd2f3

Browse files
committed
chore: ensure stm32 core version is higher than 2.12.0
Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
1 parent 7a4309a commit a5fd2f3

6 files changed

Lines changed: 30 additions & 0 deletions

File tree

src/WiFiClientST.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#ifndef WIFICLIENTST_H
3535
#define WIFICLIENTST_H
3636

37+
/* Core compatibility */
38+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
39+
#error "This library is not compatible with core version used. Please update the core."
40+
#endif
41+
3742
#include "Arduino.h"
3843
#include "Client.h"
3944
#include "IPAddress.h"

src/WiFiST.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#ifndef WiFiST_H
3535
#define WiFiST_H
3636

37+
/* Core compatibility */
38+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
39+
#error "This library is not compatible with core version used. Please update the core."
40+
#endif
41+
3742
#include "wifi_drv.h"
3843
#include "spi_drv.h"
3944
#include "IPAddress.h"

src/WiFiServerST.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#ifndef WIFISERVER_H
3535
#define WIFISERVER_H
3636

37+
/* Core compatibility */
38+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
39+
#error "This library is not compatible with core version used. Please update the core."
40+
#endif
41+
3742
#include "Server.h"
3843

3944
class WiFiClient;

src/WiFiUdpST.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#ifndef WIFIUDP_H
3535
#define WIFIUDP_H
3636

37+
/* Core compatibility */
38+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
39+
#error "This library is not compatible with core version used. Please update the core."
40+
#endif
41+
3742
#include <Udp.h>
3843

3944
#define UDP_TX_PACKET_MAX_SIZE 24

src/driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
#ifndef __DRIVER_H
3636
#define __DRIVER_H
3737

38+
/* Core compatibility --------------------------------------------------------*/
39+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
40+
#error "This library is not compatible with core version used. Please update the core."
41+
#endif
42+
3843

3944
/* virtual class necessary to abstract the means of communication between
4045
the uC and the device. */

src/wifi_drv.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
#ifndef WiFi_Drv_H
3737
#define WiFi_Drv_H
3838

39+
/* Core compatibility */
40+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
41+
#error "This library is not compatible with core version used. Please update the core."
42+
#endif
43+
3944
#include <stdint.h>
4045
#include "IPAddress.h"
4146
#include "es_wifi_conf.h"

0 commit comments

Comments
 (0)