Closed bekirbostanci closed 2 years ago
I controlled publishString function but it looks like not working. I added pinMode(2, OUTPUT); at setup
void publishString(std_msgs::String* msg, void* arg)
{
digitalWrite(2,HIGH);
delay(200);
digitalWrite(2,LOW);
delay(200);
(void)(arg);
static int cnt = 0;
sprintf(msg->data, "Hello ros2arduino %d", cnt++);
}
Hi Firstly I am trying serial commication with esp32 however when I try to build it gives this error.
I tried to change transport_arduino_internal.cpp file I deleted these lines in transport_arduino_internal.cpp file. Note : I dont need UDP or TCP so that it is not important for me.
Aftert this process it worked and upload to esp32 but when I checked it from Serial Monitor I saw nothing was shared. only after the first reset a few lines of characters appear to be shared