B4R Question Difference Between astream.write() and log()

hatzisn

Expert
Licensed User
Longtime User
astream.write is for communications with f.e. a mobile or a b4j program (usually used in WiFi or BlueTooth enabled boards) but log is for sending information in the B4R IDE logs or the connected external logger (Erel's implementation) through the USB and it is intented for all boards even if they are not WiFi and BT enabled.
 
Upvote 0

embedded

Active Member
Licensed User
Longtime User
Thanks...for your reply
working on a project in which ESP32 BOARD Send and receive data form B4J...through serial port
now which one is better logs or astream in B4R coding.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Why would you want to attach a remotely accessible board to a computer? I would prefer the astream but it depends on what you want to do.
 
Upvote 0

embedded

Active Member
Licensed User
Longtime User
Why would you want to attach a remotely accessible board to a computer? I would prefer the astream but it depends on what you want to do.
my board is not in remote....it is near by pc....it work in dual mode.....with wire or wireless....mode of communication set by user.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Sorry you missunderstood me. I meant that it is Wireless both as BlueTooth or WiFi and since it is this way If I were you I would prefer not to attach it to my computer but have it where it is needed.
 
Upvote 0

embedded

Active Member
Licensed User
Longtime User
Sorry you missunderstood me. I meant that it is Wireless both as BlueTooth or WiFi and since it is this way If I were you I would prefer not to attach it to my computer but have it where it is needed.
ok...thanks for you help.
 
Upvote 0
Top