@@ -56,11 +56,11 @@ static inline void set_microros_transports(){
56
56
#include <NativeEthernet.h>
57
57
#endif
58
58
59
- #if defined(TARGET_PORTENTA_H7_M7 )
59
+ #if defined(TARGET_PORTENTA_H7_M7 ) || defined( ARDUINO_OPTA )
60
60
#include <PortentaEthernet.h>
61
61
#endif
62
62
63
- #if defined(TARGET_STM32F4 ) || defined(ARDUINO_TEENSY41 ) || defined(TARGET_PORTENTA_H7_M7 )
63
+ #if defined(TARGET_STM32F4 ) || defined(ARDUINO_TEENSY41 ) || defined(TARGET_PORTENTA_H7_M7 ) || defined( ARDUINO_OPTA )
64
64
extern "C" bool arduino_native_ethernet_udp_transport_open (struct uxrCustomTransport * transport );
65
65
extern "C" bool arduino_native_ethernet_udp_transport_close (struct uxrCustomTransport * transport );
66
66
extern "C" size_t arduino_native_ethernet_udp_transport_write (struct uxrCustomTransport * transport , const uint8_t * buf , size_t len , uint8_t * err );
@@ -95,9 +95,9 @@ static inline void set_microros_native_ethernet_udp_transports(byte mac[], IPAdd
95
95
96
96
#endif
97
97
98
- #if defined(ESP32 ) || defined(TARGET_PORTENTA_H7_M7 ) || defined(ARDUINO_GIGA ) || defined(ARDUINO_NANO_RP2040_CONNECT ) || defined(ARDUINO_WIO_TERMINAL ) || defined(BOARD_WITH_ESP_AT ) || defined(ARDUINO_UNOR4_WIFI )
98
+ #if defined(ESP32 ) || defined(TARGET_PORTENTA_H7_M7 ) || defined(ARDUINO_GIGA ) || defined(ARDUINO_NANO_RP2040_CONNECT ) || defined(ARDUINO_WIO_TERMINAL ) || defined(BOARD_WITH_ESP_AT ) || defined(ARDUINO_UNOR4_WIFI ) || defined( ARDUINO_OPTA )
99
99
100
- #if defined(ESP32 ) || defined(TARGET_PORTENTA_H7_M7 ) || defined(ARDUINO_GIGA )
100
+ #if defined(ESP32 ) || defined(TARGET_PORTENTA_H7_M7 ) || defined(ARDUINO_GIGA ) || defined( ARDUINO_OPTA )
101
101
#include <WiFi.h>
102
102
#include <WiFiUdp.h>
103
103
#elif defined(ARDUINO_NANO_RP2040_CONNECT )
@@ -116,7 +116,7 @@ extern "C" bool arduino_wifi_transport_open(struct uxrCustomTransport * transpor
116
116
extern "C" bool arduino_wifi_transport_close (struct uxrCustomTransport * transport );
117
117
extern "C" size_t arduino_wifi_transport_write (struct uxrCustomTransport * transport , const uint8_t * buf , size_t len , uint8_t * err );
118
118
extern "C" size_t arduino_wifi_transport_read (struct uxrCustomTransport * transport , uint8_t * buf , size_t len , int timeout , uint8_t * err );
119
- #ifndef TARGET_PORTENTA_H7_M7
119
+ #if !defined( TARGET_PORTENTA_H7_M7 ) && !defined( ARDUINO_OPTA )
120
120
struct micro_ros_agent_locator {
121
121
IPAddress address ;
122
122
int port ;
0 commit comments