Sending hex 0x00 in script

Hello,
Modbus commands often have 0x00 bytes. How do you send that as a script without it being interpreted as a null terminator?
5e4848a9-565a-47fb-9150-29bde92b51da-image.png

Thank you,
Stuart

Hi Stuart,

The second parameter of the transmit function is the block size (if omitted, strlen will be used, thus cutting the packet at the first 0-byte).

In your case, simply pass the required size to transmit like this:

transmit(a, sizeof(a));

Hi Vladimir,
That's great, thank you for your help.
Stuart