I`m trying to read RFID in a Raspberry Pi.
If I run in the raspi: $ sudo python rfidle.py, functions...
But with B4j, not...
can anybody help me? Thanks!
If I run in the raspi: $ sudo python rfidle.py, functions...
But with B4j, not...
can anybody help me? Thanks!
Sub AppStart (Args() As String)
Dim sh As Shell
' sftp://pi@192.168.1.15/home/pi/pi-rc522/examples/rfidle.py
sh.Initialize("sh", "python", Array As String("rfidle.py", "w", "B4J is", "great"))
sh.WorkingDirectory = "/home/pi/pi-rc522/examples/"
sh.Run(10000)
StartMessageLoop
End Sub
Sub sh_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success And ExitCode = 0 Then
Log("Success")
Log(StdOut)
Else
Log("Error: " & StdErr)
End If
'ExitApplication