It is supposed to work

Dependencies:   mbed ros_lib_kinetic

Revision:
2:306c6c49a327
Parent:
1:b725652b9b42
Child:
3:3a65e8aae6b6
--- a/main.cpp	Wed Oct 09 10:09:57 2019 +0000
+++ b/main.cpp	Tue Oct 15 09:07:24 2019 +0000
@@ -163,13 +163,8 @@
     nh.initNode();
     
     std_msgs::Int32 int_msg;
-    std_msgs::String str_msg;
-    ros::Publisher chatter("chatter", &str_msg);
     ros::Publisher range_pub("range", &int_msg);
 
-    char hello[13] = "hello world!";
-    
-    nh.advertise(chatter);
     nh.advertise(range_pub);
     
     int range; 
@@ -177,11 +172,7 @@
     VL6180_Init(); 
   
     while (1)
-    {    
-        led = !led;
-        str_msg.data = hello;
-        chatter.publish( &str_msg );
-        
+    {            
         // start range measurement        
         VL6180_Start_Range();
         // poll the VL6180 till new sample ready