Android Question Send a string over wifi and socket and read

FreeWolF

Active Member
Licensed User
Longtime User
Hello,

I have to send a string of bytes (exadecimal) to an electronic board over wifi and socket.

For the wifi connection I use the library jhwifi and I can get the connection without problem.
Then I initialize the socket and I can connect to the board.

But, I have to send that data (exadecimal) to the board:

"0x01 0x08 0x00 0x00 0x00 0x00 0xE0 0x0B"

And the board have to reply with the same string.

How can I do it?

thanks in advance!!
 

FreeWolF

Active Member
Licensed User
Longtime User
With asyncstream, how can receive The response from a board? I have To listen The response? With socket I can't do that?
 
Upvote 0
Top