Skip to content

Commit 26ff735

Browse files
committed
full variants rebuild
1 parent 2c40ba8 commit 26ff735

File tree

37 files changed

+116
-82
lines changed

37 files changed

+116
-82
lines changed

cores/arduino/mbed/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ class WhdSTAInterface : public WiFiInterface, public EMACInterface {
119119
return 0;
120120
}
121121

122+
nsapi_error_t set_timeout(uint32_t timeout)
123+
{
124+
_timeout = timeout;
125+
}
126+
122127
/** Set blocking status of interface.
123128
* Nonblocking mode unsupported.
124129
*
@@ -257,6 +262,7 @@ class WhdSTAInterface : public WiFiInterface, public EMACInterface {
257262
nsapi_security_t _security;
258263
WHD_EMAC &_whd_emac;
259264
OlmInterface *_olm;
265+
uint32_t _timeout;
260266
whd_interface_shared_info_t &_iface_shared;
261267
};
262268

cores/arduino/mbed/connectivity/drivers/wifi/COMPONENT_WHD/wifi-host-driver/inc/whd_wifi_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ extern uint32_t whd_wifi_stop_scan(whd_interface_t ifp);
281281
* Error code if an error occurred
282282
*/
283283
extern uint32_t whd_wifi_join(whd_interface_t ifp, const whd_ssid_t *ssid, whd_security_t auth_type,
284-
const uint8_t *security_key, uint8_t key_length);
284+
const uint8_t *security_key, uint8_t key_length, uint32_t timeout);
285285

286286
/** Joins a specific Wi-Fi network
287287
*

cores/arduino/mbed/connectivity/netsocket/include/netsocket/EMACInterface.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class EMACInterface : public virtual NetworkInterface {
8383
/** @copydoc NetworkInterface::disconnect */
8484
nsapi_error_t disconnect() override;
8585

86+
/** @copydoc NetworkInterface::get_hostname */
87+
const char *get_hostname() override;
88+
89+
/** @copydoc NetworkInterface::set_hostname */
90+
nsapi_error_t set_hostname(const char *hostname) override;
91+
8692
/** @copydoc NetworkInterface::get_mac_address */
8793
const char *get_mac_address() override;
8894

@@ -146,6 +152,8 @@ class EMACInterface : public virtual NetworkInterface {
146152
OnboardNetworkStack::Interface *_interface = nullptr;
147153
bool _dhcp = true;
148154
bool _blocking = true;
155+
bool _hostname_set = false;
156+
char _hostname[NSAPI_HOSTNAME_SIZE];
149157
bool _hw_mac_addr_set = false;
150158
char _mac_address[NSAPI_MAC_SIZE];
151159
char _ip_address[NSAPI_IPv6_SIZE] {};

cores/arduino/mbed/connectivity/netsocket/include/netsocket/NetworkInterface.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,24 @@ class NetworkInterface: public DNS {
9090
*/
9191
virtual void set_as_default();
9292

93+
/** Get hostname.
94+
*
95+
* @return Hostname if configured, null otherwise
96+
*/
97+
virtual const char *get_hostname();
98+
99+
/** Set hostname.
100+
*
101+
* @param hostname Hostname string
102+
* @retval NSAPI_ERROR_OK on success
103+
* @retval NSAPI_ERROR_UNSUPPORTED if this feature is not supported
104+
* @retval NSAPI_ERROR_PARAMETER if hostname is not valid
105+
* @retval NSAPI_ERROR_BUSY if hostname couldn't be set (e.g. for
106+
* LwIP stack, hostname can only be set before calling
107+
* \c EthernetInterface::connect method)
108+
*/
109+
virtual nsapi_error_t set_hostname(const char *hostname);
110+
93111
/** Get the local MAC address.
94112
*
95113
* Provided MAC address is intended for info or debug purposes and

cores/arduino/mbed/connectivity/netsocket/include/netsocket/TLSSocketWrapper.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ class TLSSocketWrapper : public Socket {
379379
Socket *_transport;
380380
int _timeout = -1;
381381

382+
// Event flags
383+
static const int READ_FLAG = 0x1u;
384+
static const int WRITE_FLAG = 0x2u;
385+
382386
#ifdef MBEDTLS_X509_CRT_PARSE_C
383387
mbedtls_x509_crt *_cacert = nullptr;
384388
mbedtls_x509_crt *_clicert = nullptr;

cores/arduino/mbed/connectivity/netsocket/include/netsocket/WiFiInterface.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ class WiFiInterface: public virtual NetworkInterface {
5959
*/
6060
virtual nsapi_error_t set_channel(uint8_t channel) = 0;
6161

62+
/** Set the Wi-Fi network join timeout.
63+
*
64+
* @param timeout joint timeout in milliseconds (Default: 7000).
65+
* @return NSAPI_ERROR_OK on success, or error code on failure.
66+
*/
67+
virtual nsapi_error_t set_timeout(uint32_t timeout) = 0;
68+
6269
/** Get the current radio signal strength for active connection.
6370
*
6471
* @return Connection strength in dBm (negative value),

cores/arduino/mbed/connectivity/netsocket/include/netsocket/nsapi_types.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ typedef enum nsapi_security {
196196
*/
197197
#define NSAPI_IP_BYTES NSAPI_IPv6_BYTES
198198

199+
/** Maximum size of hostname
200+
*
201+
* According to RFC 1034 [1], Section 3.1 "Name space specifications and
202+
* terminology", 63 is the maximum size of a hostname. +1 for the string
203+
* terminator.
204+
*
205+
* [1] https://www.rfc-editor.org/rfc/rfc1034
206+
*/
207+
#define NSAPI_HOSTNAME_SIZE 64
208+
199209
/** Maximum size of MAC address representation
200210
*/
201211
#define NSAPI_MAC_SIZE 18

variants/ARDUINO_NANO33BLE/defines.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
-DFEATURE_STORAGE=1
3535
-D__FPU_PRESENT=1
3636
-D__MBED__=1
37-
-DMBED_BUILD_TIMESTAMP=1720438723.6150708
37+
-DMBED_BUILD_TIMESTAMP=1730202709.4767566
3838
-D__MBED_CMSIS_RTOS_CM
3939
-DMBED_MPU_CUSTOM
4040
-DMBED_TICKLESS
@@ -65,7 +65,7 @@
6565
-DTOOLCHAIN_GCC_ARM
6666
-DWSF_MAX_HANDLERS=10
6767
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
68-
-DCORE_MAJOR=4
69-
-DCORE_MINOR=1
70-
-DCORE_PATCH=5
68+
-DCORE_MAJOR=
69+
-DCORE_MINOR=
70+
-DCORE_PATCH=
7171
-DUSE_ARDUINO_PINOUT
46.2 KB
Binary file not shown.

variants/EDGE_CONTROL/defines.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
-DFEATURE_STORAGE=1
3939
-D__FPU_PRESENT=1
4040
-D__MBED__=1
41-
-DMBED_BUILD_TIMESTAMP=1720438575.8324268
41+
-DMBED_BUILD_TIMESTAMP=1730202880.502858
4242
-D__MBED_CMSIS_RTOS_CM
4343
-DMBED_MPU_CUSTOM
4444
-DMBED_TICKLESS
@@ -69,7 +69,7 @@
6969
-DTOOLCHAIN_GCC_ARM
7070
-DWSF_MAX_HANDLERS=10
7171
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
72-
-DCORE_MAJOR=4
73-
-DCORE_MINOR=1
74-
-DCORE_PATCH=5
72+
-DCORE_MAJOR=
73+
-DCORE_MINOR=
74+
-DCORE_PATCH=
7575
-DUSE_ARDUINO_PINOUT

0 commit comments

Comments
 (0)