Using this code - advertisedDevice.getServiceDataUUID().toString().c_str()); returns the following string -
0000feaa-0000-1000-8000-00805f9b34fb
How can I adjust the code to do that it omits the first nine characters leaving only -
0000-1000-8000-00805f9b34fb
Thank you.
Have you looked at the methods available to you, from the String class?
Fundamentally, you must copy the remainder of the String to a new String.
advertisedDevice.getServiceDataUUID().toString().substring(9).c_str());
system
Closed
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.