async streams

  1. luki_c

    B4R Question ESP32 how to use BT with astream

    I'm writing an application where I receive/send data to esp32 I'm using esp idf for this and I ran into a problem. When I send data to esp32 with the command Public Sub SendMessage (msg As String) AStream.Write(msg.GetBytes("UTF8")) End Sub On the other side I couldn't read the data, so I...
  2. Mattiaf

    Android Question Too slow getting data

    Hi, I'm getting text from a website at the press of a button, but it seems way too slow and not async. The data is being downloaded from a website that cointains plain text only, it is filtered in order to display only what matters to me and I replace the weed days from english to italian. The...
  3. MList

    B4J Question Receiving Data in Background

    Hi All, I have an B4X Project, which is receiving Data via Serial Lib and AsyncStreams. The data are measuring value which come continiusly (200kHz) approx. 15 values every second. The incoming data is very difficult to handle and i have problems with handling the gui. How can I manage to put...
  4. MList

    iOS Question serial interface

    Hi, I am working with a device which sends data via cable. How can I do it with B4i? Whats the serial lib? B4J: Dim AStream As AsyncStreams Private com As Serial com.Initialize("com") com.Open(cmbText.SelectedItem) com.SetParams(115200,8,1,0) AStream.Initialize(com.GetInputStream...
  5. Y

    German Fragen zur Verbindung Mikrokontroller (STM32) über Bluetooth

    Situation - vorhandener Mikrokontroller mit Bluetooth und Programm - laufendes Windowsprogramm für die Kommunikation mit dem Mikrokontroller (in über 100 Ausführungen im produktiven Einsatz) - Übertragung des Windowsprogramms auf ein Android Tablet Bisher - Grundlagen für B4A - Studium...
  6. A

    Android Question [Solved]Serial Async Buffersize

    Hi all, Is there a way to increase the buffer size to more than 100? or Is there a way to know the total received bytes (to know when to store it in a temp buffer)? I came across Streamtotal and Streamreceived but they give a 0 value when reading these in "astream_NewData". This is probably...
  7. R

    Android Question HC-06 Bluetooth Async Buffer

    Hello Erel I have a WIT-motion device which give Roll/Pitch/Yaw data via bluetooth HC-06. 11 bytes, start with 0X55 with second byte as data type 0x53 is RPY. Byte 11 is CRC. This is not Prefix mode so I have used a ring buffer to find the data block. This code working but seems very slow...
  8. KMatle

    B4J Tutorial [B4x] RSA example (asyncstreams)

    - Changed to B4x as the subs can be used in B4A, too - "Send File" added (new Button to send a file to the other client) This tutorial is based on Erel's Asyncstreams example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ RSA basics...
  9. johnf2013

    Android Code Snippet Send structure from C++ to B4X in prefix mode

    I needed to send a structure from an STM32 running an Arduino core to an Android device using Async Streams in prefix mode over Bluetooth. This snippet should work with the 8 bitters too. Seems to work for me. Better programmers than me are sure to find holes in it so I am waiting to learn...
Top