A Adamdam Active Member Licensed User Longtime User Jul 27, 2017 #1 I need to establish simple communication between iPhone or iPad to external hardware bluetooth module. The following library/code work well in B4a: Just using simple libraries as following: Dim Serial1 As Serial Dim TextReader1 As TextReader Dim TextWriter1 As TextWriter Sub mnuConnect_Click Serial1.Connect("42:71:34:21:89:44") End Sub and to sending: TextWriter1.WriteLine(String1) TextWriter1.Flush I need like that in B4i.
I need to establish simple communication between iPhone or iPad to external hardware bluetooth module. The following library/code work well in B4a: Just using simple libraries as following: Dim Serial1 As Serial Dim TextReader1 As TextReader Dim TextWriter1 As TextWriter Sub mnuConnect_Click Serial1.Connect("42:71:34:21:89:44") End Sub and to sending: TextWriter1.WriteLine(String1) TextWriter1.Flush I need like that in B4i.
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2017 #2 1. Please use [code]code here...[/code] tags when posting code. 2. You should never use TextReader and TextWriter with network streams. Use AsyncStreams instead. This question should have been posted in B4i forum. Anyway, iOS doesn't provide access to the classic Bluetooth APIs. Only to BLE. Upvote 0
1. Please use [code]code here...[/code] tags when posting code. 2. You should never use TextReader and TextWriter with network streams. Use AsyncStreams instead. This question should have been posted in B4i forum. Anyway, iOS doesn't provide access to the classic Bluetooth APIs. Only to BLE.