Hello,
I want to convert the c_str() -- which is a builtin function in C++ which returns a pointer to an array into string at B4R.
In Inline C below is the line I want to convert into string
How do I change the value to String format. I am not able to convert the value to string.
The below is the Logs I am getting so far...
Please advice on this please
I want to convert the c_str() -- which is a builtin function in C++ which returns a pointer to an array into string at B4R.
In Inline C below is the line I want to convert into string
B4X:
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
int scanTime = 10; //In seconds
BLEScan* pBLEScan;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str()); ====>> This Line I am getting error
How do I change the value to String format. I am not able to convert the value to string.
The below is the Logs I am getting so far...
B4X:
Advertised Device: Name: , Address: 25:91:c8:a0:b8:2f, manufacturer data: 060001092002d4c7b0ef9a45a26e18156c112acd93549b955b573ea574
Please advice on this please
Last edited: