Read serial port with Script block
Quote from David3542 on 02/02/2022, 17:27Hi Sir
do you have any simple example for read serial port in Script block?
we found the serial library in the installation path, but it need a sample example for run it !
Hi Sir
do you have any simple example for read serial port in Script block?
we found the serial library in the installation path, but it need a sample example for run it !
Quote from mm_dev on 03/02/2022, 11:09Here is a simple example mission for reading data from a serial port. You may have to adjust the connection parameters to your needs. The read() method returns a binary Arraybuffer which you have to convert to the proper data type you need.
Here is a simple example mission for reading data from a serial port. You may have to adjust the connection parameters to your needs. The read() method returns a binary Arraybuffer which you have to convert to the proper data type you need.
Uploaded files: