petr4ppc Well-Known Member Licensed User Longtime User Feb 29, 2020 #1 Dear friends, please for advice, I have module connected to ESP and I send to this module "AT" via serial. The module expect data in HEX format, is this right solution, please? B4X: Copy Dim bc As ByteConverter astream.Write(bc.HexFromBytes("AT")) or this? B4X: Copy astream.Write(bc.HexToBytes("4154")) I have read : https://www.b4x.com/android/forum/threads/serial-hex.109640/#post-684980 Thank you p4ppc
Dear friends, please for advice, I have module connected to ESP and I send to this module "AT" via serial. The module expect data in HEX format, is this right solution, please? B4X: Copy Dim bc As ByteConverter astream.Write(bc.HexFromBytes("AT")) or this? B4X: Copy astream.Write(bc.HexToBytes("4154")) I have read : https://www.b4x.com/android/forum/threads/serial-hex.109640/#post-684980 Thank you p4ppc
janderkan Well-Known Member Licensed User Longtime User Feb 29, 2020 #2 petr4ppc said: The module expect data in HEX format Click to expand... What do you mean ? Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Feb 29, 2020 #3 Janderkan I have read this: "I think the library () has a bug; it prints the message in binary when the Wisol module expects hex...."...(I know this is not b4r library) link to messahe about hex and this is the reason why I want only know, if in B4R is some other way how to send hex than: B4X: Copy Dim bc As ByteConverter astream.Write(bc.HexFromBytes("AT")) Thank you p4ppc (I hope that it is not dumb question from my side) Upvote 0
Janderkan I have read this: "I think the library () has a bug; it prints the message in binary when the Wisol module expects hex...."...(I know this is not b4r library) link to messahe about hex and this is the reason why I want only know, if in B4R is some other way how to send hex than: B4X: Copy Dim bc As ByteConverter astream.Write(bc.HexFromBytes("AT")) Thank you p4ppc (I hope that it is not dumb question from my side)
thetahsk Active Member Licensed User Longtime User Feb 29, 2020 #4 petr4ppc said: ... Click to expand... The AT commands are send in plain Text, only some payloads is send in Hex. Study examples with Arduino + Wisol BRKWS01. e.g. : https://github.com/luisomoreau/arduinoUno-wisol Upvote 0
petr4ppc said: ... Click to expand... The AT commands are send in plain Text, only some payloads is send in Hex. Study examples with Arduino + Wisol BRKWS01. e.g. : https://github.com/luisomoreau/arduinoUno-wisol
petr4ppc Well-Known Member Licensed User Longtime User Feb 29, 2020 #5 TheTahsk thank you for your answer and link..I will try it Thank you p4ppc Upvote 0