Thank you very much Jackson. Next time i will add more details. I think i solved that problem. Print send out ASCII code. by the way it is node mcu esp32S
yes, you print the decimal representation for the value 0 encoded in ASCII. So you should see the code 0x30 or 48 in decimal, not 0x0C which is the form feed code. So not sure that's the only issue you have.
(if you want to send the byte's raw value, use Serial2.write(data);)
Please correct your first post above and add code tags around your code
please help us maintain the forum "clean" looking.
Not doing so will get you in the "selfish demanders who do not care about the community" category for many of the helpers here, including me, and we will ignore your asks in the future....