How to send Array that contains 0x00h via serial Port

For a special reason, i must send:

uint8_t ScanRsponseData[] ={0x5C,0x23,0x00,0x10,0x20,0x30,0x00,0x00,0x00,0x80};

by using serial port to connected LEGO Sensor.

Problem is, i dodn not manage, every time i try , the "zeros" are removed / not send.

How to transfer value of 0x00h via serial Port ?

Thanks in advance

Can you please post a complete (but small) code example that shows the behavior? That way we can have a look and test it.

Also what is at the other end receiving your values? When you send bytes from one serial device to another you can send all possible values (0x00 - 0xFF). When you send the data to a terminal e.g. the Serial Monitor not all values are actually visible characters. Then you need to send number values as ASCII characters.

Have a look at the Arduino Reference Serial.print

and compare the Serial.write function

They look very similar but will create different results.

Let me know when you have any further questions.