Hi
I need some help porting the following code from Java to Basic4Android
In Basic4Android, this seems to give me a nullpointer: (the npe occurs when sending the actual data)
What is the correct equivalent for this double array?
Regards,
Tomas
I need some help porting the following code from Java to Basic4Android
B4X:
public boolean sendData(String toChannel, byte[] buf) {
byte[][] payload = new byte[1][];
payload[0] = buf;
return true;
}
In Basic4Android, this seems to give me a nullpointer: (the npe occurs when sending the actual data)
B4X:
Public Sub SendData(NodeName As String, Prefix As String, Buffer() As Byte) As Boolean
Dim Payload(1,1) As Byte
Payload(0,0) = Buffer(0)
return true
What is the correct equivalent for this double array?
Regards,
Tomas
Last edited: