I created a customer type charStruct in my Java library and would like to use it in B4A.
Compiler complains it can't match both types but it knows they are related.
Compiling generated Java code. Error
B4A line: 31
peripheral.Start2(\
src\b4a\bbb\ble_peripheral.java:230: error: incompatible types: _charstruct cannot be converted to BlePeripheral3.charStruct
__ref._peripheral /*anywheresoftware.b4a.objects.BlePeripheral3*/ .Start2("RunCline",(android.bluetooth.le.AdvertiseSettings)(__ref._createadvertisesettings /*Object*/ (null)),(anywheresoftware.b4a.objects.BlePeripheral3.charStruct)(_charinfo));
What gives?
Thanks.
Java:
public class charStruct {
String uuid;
int properties;
int permissions;
}
B4X:
Type charStruct (uuid As String, properties As Int, permissions As Int)
Compiler complains it can't match both types but it knows they are related.
Compiling generated Java code. Error
B4A line: 31
peripheral.Start2(\
src\b4a\bbb\ble_peripheral.java:230: error: incompatible types: _charstruct cannot be converted to BlePeripheral3.charStruct
__ref._peripheral /*anywheresoftware.b4a.objects.BlePeripheral3*/ .Start2("RunCline",(android.bluetooth.le.AdvertiseSettings)(__ref._createadvertisesettings /*Object*/ (null)),(anywheresoftware.b4a.objects.BlePeripheral3.charStruct)(_charinfo));
What gives?
Thanks.
Last edited: