B4J Question Linux Port

BarryW

Active Member
Licensed User
Longtime User
Trying to serial.ListPorts in Linux but no success. Any advice?
 

BarryW

Active Member
Licensed User
Longtime User
Here is my code.

B4X:
Sub Process_Globals
    Dim serial As Serial
End Sub

Sub AppStart (Args() As String)
    serial.Initialize("")
    For Each port As String In serial.ListPorts
        Log(port)
    Next
End Sub

No logs has been printed. I used "java -jar app.java" in Linux
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0
Top