Android Question USB-Serial-for-Android

wroyw

Member
Licensed User
Hi,
I'm new on B4A and android programming.
I need a USB-serial lib , with a read command.

I found this : https://github.com/mik3y/usb-serial-for-android

Now I use the SLC tool to compiling for B4A (jar + xml file)
But I get many warnings like this :
Working with class: com.felhr.deviceids.CH34xIds
No ShortName annotation found for class: CH34xIds

And then I missing many daclarations of classes ...

Have you some hints for me ?

Best regards

Roy
 

wroyw

Member
Licensed User
thats not the same ...
I search a library with a Read function like this :
port.read(buffer,count,timeout)
 
Upvote 0

wroyw

Member
Licensed User
hmm, the problem is that I must read many settings from a device (many commands) and show the settings in my application
so I wanted write a sub for every command like this :

sub ReadSetting1 as float
end sub
sub ReadSetting2 as byte
end sub
sub ReadSetting3 as string
end sub

and in my main :
dim f as float = ReadSetting1
dim b as byte = ReadSetting2
dim s as string = ReadSetting3

That sound complicated with a async communication ...
 
Upvote 0
Top