Android Question Network Recieved astream variables

rodmcm

Active Member
Licensed User
This code is a stripped down version of Erel's network+ asynchstreams for my learning of B4x. It operates only as as a client and works absolutely fine when in the 'main' activity, displaying the received data from an ad hoc network. i have transferred the received information to a public string ESP32Msg in the starter module.

I use a timer tick to refresh the information in the PlayText module but I usually just get the last information in ESP32Msg.

Something needs to be in the starter module to maintain the data flow ( I think). I have tried every combination I can think of, including having all of the communication code in the starter module as per Erel's advice in the above tutorial but to know avail.

Can someone please direct me as to what pieces of code should be in activities or starter module for this application, or what I am missing...
 

Attachments

  • B4A ATWifi Simple.zip
    489.8 KB · Views: 159
Top