Jan 29, 2015 Replies: 8 Hi all, My contribute to the community a USB Serial service, you can add more activitys... If you like this please press "like" Thanks camolas Attachments UsbSerial_respose_service.zip 9.7 KB · Views: 879 Click to expand...
Hi all, My contribute to the community a USB Serial service, you can add more activitys... If you like this please press "like" Thanks camolas
raphaelcno Active Member Licensed User Longtime User Jan 29, 2015 #2 You can change B4X: Sub GetResult(Result As String , Result2 As String) to B4X: Sub GetResult(Result As Boolean, Result2 As Boolean) (Boolean instead of String)
You can change B4X: Sub GetResult(Result As String , Result2 As String) to B4X: Sub GetResult(Result As Boolean, Result2 As Boolean) (Boolean instead of String)
NJDude Expert Licensed User Longtime User Jan 29, 2015 #3 Your sample doesn't compile on B4A 4.0, I get THIS error.
C camolas Member Licensed User Longtime User Jan 29, 2015 #4 raphaelcno said: You can change B4X: Sub GetResult(Result As String , Result2 As String) to B4X: Sub GetResult(Result As Boolean, Result2 As Boolean) (Boolean instead of String) Click to expand... Can you please explain what are the benefits of the change ? Thanks camolas
raphaelcno said: You can change B4X: Sub GetResult(Result As String , Result2 As String) to B4X: Sub GetResult(Result As Boolean, Result2 As Boolean) (Boolean instead of String) Click to expand... Can you please explain what are the benefits of the change ? Thanks camolas
C camolas Member Licensed User Longtime User Jan 29, 2015 #5 NJDude said: Your sample doesn't compile on B4A 4.0, I get THIS error. Click to expand... Sorry to hear that, l dont have B4A 4.0 to test it. Thanks camolas
NJDude said: Your sample doesn't compile on B4A 4.0, I get THIS error. Click to expand... Sorry to hear that, l dont have B4A 4.0 to test it. Thanks camolas
raphaelcno Active Member Licensed User Longtime User Jan 29, 2015 #6 NJDude said: Your sample doesn't compile on B4A 4.0, I get THIS error. Click to expand... You probably have version 2.3 of the UsbSerial library. Version 2.4 is available here: https://www.b4x.com/android/forum/t...pports-more-devices.28176/page-11#post-259167 If you still want to use version 2.3, you can try to remove "(1)" behind "usb1.UsbPresent". Last edited: Jan 29, 2015
NJDude said: Your sample doesn't compile on B4A 4.0, I get THIS error. Click to expand... You probably have version 2.3 of the UsbSerial library. Version 2.4 is available here: https://www.b4x.com/android/forum/t...pports-more-devices.28176/page-11#post-259167 If you still want to use version 2.3, you can try to remove "(1)" behind "usb1.UsbPresent".
raphaelcno Active Member Licensed User Longtime User Jan 29, 2015 #7 camolas said: Can you please explain what are the benefits of the change ? camolas Click to expand... I just saw that you call the GetResult Sub with B4X: CallSubDelayed3(Main, "GetResult", True, False) where True and False are Boolean.
camolas said: Can you please explain what are the benefits of the change ? camolas Click to expand... I just saw that you call the GetResult Sub with B4X: CallSubDelayed3(Main, "GetResult", True, False) where True and False are Boolean.
NJDude Expert Licensed User Longtime User Jan 29, 2015 #8 When posting code, the author should be the one indicating what is needed, otherwise, issues like this will happen.
When posting code, the author should be the one indicating what is needed, otherwise, issues like this will happen.
C camolas Member Licensed User Longtime User Jan 29, 2015 #9 raphaelcno said: I just saw that you call the GetResult Sub with B4X: CallSubDelayed3(Main, "GetResult", True, False) where True and False are Boolean. Click to expand... Just corrected the code, thanks for pointing that cam
raphaelcno said: I just saw that you call the GetResult Sub with B4X: CallSubDelayed3(Main, "GetResult", True, False) where True and False are Boolean. Click to expand... Just corrected the code, thanks for pointing that cam