F FreeWolF Active Member Licensed User Longtime User Mar 24, 2014 #1 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!!
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!!
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2014 #2 You should use the Network library to connect. Once connected you should initialize an AsyncStreams object. Do you want to send the actual bytes or the string? Upvote 0
You should use the Network library to connect. Once connected you should initialize an AsyncStreams object. Do you want to send the actual bytes or the string?
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2014 #4 Code: Copy AStream.Write(Array As Byte(0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x0B)) Upvote 0
F FreeWolF Active Member Licensed User Longtime User Mar 24, 2014 #5 Ok, And To Read The response of The board I have To use asyncstream again? Upvote 0
F FreeWolF Active Member Licensed User Longtime User Mar 24, 2014 #6 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
With asyncstream, how can receive The response from a board? I have To listen The response? With socket I can't do that?
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2014 #7 See the tutorial: AsyncStreams Tutorial Upvote 0