I am using the Network Library, sending something to the (Arduino) Server and wait for the respose in the same sub. In Debug mode it is working, in Release mode I get the NetworkOnMainThreadException error on this line:
tr_Server.ReadLine ' tr_Server is a TextReader .Initialize(Socket1.InputStream)
I also tried input_stream.ReadBytes, same result.
The communication is not http, just a view bytes on 192.168.4.1, port 1234, so I cannot use the OkHttp Lib, right?
Why has the Network Lib a event for UDP PacketArrived, but not for TCP?
tr_Server.ReadLine ' tr_Server is a TextReader .Initialize(Socket1.InputStream)
I also tried input_stream.ReadBytes, same result.
The communication is not http, just a view bytes on 192.168.4.1, port 1234, so I cannot use the OkHttp Lib, right?
Why has the Network Lib a event for UDP PacketArrived, but not for TCP?