Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


Sets tag value.

Component Version macOS Windows Linux Server iOS SDK
SerialPort 13.0 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "SerialPort.SetTag"; PortReference; Tag )   More


Parameter Description Example
PortReference The reference number of the port. You get this number from SerialPort.Open when you open the port. $port
Tag The new tag value.


Returns OK or error.


Sets tag value.
You can use the tag value to associate whatever value you like with the serial port object. Use SerialPort.GetTag function later to get back the value.

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 29th November 2022, last changed 29th November 2022

SerialPort.SetStopBits - SerialPort.SetXON

💬 Ask a question or report a problem

Start Chat