Wolly Posted March 19, 2018 Report Share Posted March 19, 2018 I use the Protocol Scan command to read the ASCII character string 0D 0A 31 32 20 20 20 31 30 31 2E 33 32 6B 50 61 61 0D 0A - "/ n / r12 101.32kPaa / n / r" from the receive buffer. The number of bytes of the pressure value kPaa is not constant, it can be from 3 to 6 bytes. Therefore, when configuring a command, I use "Decimal, no fixed length". After scanning, the command returns the Index of the received message -1. If in this case I use the "Decimal, fixed length" (6 bytes) the command returns the result 0 "OK", and the number of bytes received 19. What is the reason that the message considers as invalid? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.