Skip to content

Commit

Permalink
Copy iron mod
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiaai authored Nov 18, 2023
1 parent d708e61 commit 92e45b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/micro_ros_arduino.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#ifndef MICRO_ROS_ARDUINO
#define MICRO_ROS_ARDUINO

Expand Down Expand Up @@ -150,13 +149,13 @@ static inline void set_microros_wifi_transports(char * ssid, char * pass, char *
);
}

static inline void set_microros_wifi_transports(char * agent_ip, uint agent_port){
static inline int set_microros_wifi_transports(const char * agent_ip, const uint agent_port) {

static struct micro_ros_agent_locator locator;
locator.address.fromString(agent_ip);
locator.port = agent_port;

rmw_uros_set_custom_transport(
return rmw_uros_set_custom_transport(
false,
(void *) &locator,
arduino_wifi_transport_open,
Expand Down

0 comments on commit 92e45b4

Please sign in to comment.