serial_writearray()

Sends array data trough serial COM port.

Syntax

serial_writearray(port, hnd);

Parameters

port COM port name. Use string type, e.g. “COM10”.
hnd Array handle.
Return Value Return value is sent data size. Returned value is integer number.

Example

hnd = array_new();
array_setdata(hnd, 0x33, 0x11, 0x55, 0x66, 0x22);
result = serial_writearray("COM10", hnd);
array_delete(hnd);

result:

5; 0x33, 0x11, 0x55, 0x66, 0x22

See also

serial_writeflush, array_new, array_delete, array_setdata