Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File / port cconventions and use
#8
What if you added something to the message being sent?

message = "Four score and seven years ago." or in qb... msg$ = "Four score and seven years ago."

31-characters.

Now if I use QB64 to count the characters len(msg$), assign that to a variable, use some divider like chr$(3), and combine it, I get... msg$ = "31 Heart Four score and seven years ago." When the receiver gets the bytes, it recognizes chr$(3) (heart symbol) and converts the bytes received in front of it as the total characters to receive in the transmission before exiting the routine.

Could this type of logic be applied in your set of circumstances?

Pete
Reply


Messages In This Thread
File / port cconventions and use - by Parkland - 03-30-2025, 12:31 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 01:52 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 02:49 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when inputting ASCII text from COM port MichelleL 11 1,938 01-24-2024, 08:01 AM
Last Post: mdijkens
  BIOS com port eoredson 9 1,980 09-08-2023, 04:37 PM
Last Post: DSMan195276
  Comm and VCSP port twiddling controls sigs doppler 2 865 06-08-2023, 07:19 PM
Last Post: doppler
  _OPENHOST to port 443 fails jleger2023 9 1,915 01-19-2023, 08:20 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)