I am sending Bluetooth messages from an ESP32 module to a phone. The messages are short strings like "123" or "-123" I am listening out for them with the NewData event of an asyncstreams sub. I have initialized the asyncstreams object in non-prefix mode. If I send "123" the event occurs after the three characters have been received. If I send "-123" I usually get two events: one after the "-" is received and then another after the "123", although sometimes it waits until all four characters have been received, in which case I receive the proper message.
How do I ensure the NewData flag is not raised early?
How do I ensure the NewData flag is not raised early?