Skip to content

Commit

Permalink
ESP32 only
Browse files Browse the repository at this point in the history
  • Loading branch information
remakeai committed Aug 8, 2023
1 parent bd3a60e commit 934bcfd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ adapted to [Kaia.ai](https://kaia.ai/)-based robots. Specifically, this adapted
- moves WiFi.begin() outside of the Micro-ROS library for cleaner and convenient code development
- tweaks colcon.meta to optimize library features, performance and memory usage
- sets up the library for inclusion into the Arduino Library Manager
- pre-built for ESP32 only

## Install a library release by .ZIP download
- Navigate to the [release section](https://github.com/kaiaai/micro_ros_arduino_kaia/releases)
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ paragraph=Forked from https://github.com/micro-ROS/micro_ros_arduino/
url=https://github.com/kaiaai/micro_ros_arduino_kaia/
precompiled=true
category=Communication
architectures=stm32,OpenCR,Teensyduino,samd,sam,mbed,esp32,mbed_portenta
architectures=esp32
6 changes: 2 additions & 4 deletions src/micro_ros_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static inline void set_microros_native_ethernet_udp_transports(byte mac[], IPAdd

#endif

#if defined(ESP32) || defined(TARGET_PORTENTA_H7_M7) || defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_WIO_TERMINAL) || defined(BOARD_WITH_ESP_AT)
#if defined(ESP32) || defined(TARGET_PORTENTA_H7_M7) || defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_WIO_TERMINAL)

#if defined(ESP32) || defined(TARGET_PORTENTA_H7_M7)
#include <WiFi.h>
Expand All @@ -106,8 +106,6 @@ static inline void set_microros_native_ethernet_udp_transports(byte mac[], IPAdd
#elif defined(ARDUINO_WIO_TERMINAL)
#include <rpcWiFi.h>
#include <WiFiUdp.h>
#elif defined(BOARD_WITH_ESP_AT)
#include <WiFiEspAT.h>
#endif

extern "C" bool arduino_wifi_transport_open(struct uxrCustomTransport * transport);
Expand Down Expand Up @@ -170,4 +168,4 @@ static inline void set_microros_wifi_transports(char * agent_ip, uint agent_port

#endif

#endif // MICRO_ROS_ARDUINO
#endif // MICRO_ROS_ARDUINO
6 changes: 6 additions & 0 deletions src/micro_ros_kaia.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef MICRO_ROS_KAIA
#define MICRO_ROS_KAIA

#include <micro_ros_arduino.h>

#endif

0 comments on commit 934bcfd

Please sign in to comment.