Private Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Private result() As Byte 'single returning value
Type bleServerType (name() As Byte, mac() As Byte, value() As Byte)
Private curserver As bleServerType
End Sub
#if c
....
String res = (String)myDevice->getName().c_str()
byte b1[res.length() + 1];
res.getBytes(b1, sizeof(b1));
b4r_espbleclient::_result->data = b1; ; //THIS PASSED TO B4R OK !
b4r_espbleclient::_result->length = sizeof(b1);
//BUT NEED TO PASS the struct
_bleservertype* tmp = (_bleservertype*)b4r_espbleclient::_curserver;
tmp->name = (B4R::B4RString*)res; // error
tmp->mac = myDevice->getAddress().toString().c_str();
tmp->value = value.c_str();
b4r_espbleclient::_server_found();