Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SerialPort.SetTag
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
Parameters
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. |
Result
Returns OK or error.
Description
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
- SerialPort.GetTag
- SerialPort.GetXON
- SerialPort.Open
- SerialPort.Read
- SerialPort.Resume
- SerialPort.SetCTS
- SerialPort.SetDSR
- SerialPort.SetDTR
- SerialPort.SetParity
- SerialPort.SetXON
Release notes
- Version 13.0
- Added SerialPort.GetTag and SerialPort.SetTag functions.
Blog Entries
This function checks for a license.
Created 29th November 2022, last changed 29th November 2022
