PySide6.QtMqtt.QMqttStringPair¶
- class QMqttStringPair¶
The
QMqttStringPair
class represents the string pair data type of the MQTT 5.0 standard. More…Synopsis¶
Methods¶
def
__init__()
def
name()
def
__ne__()
def
__eq__()
def
setName()
def
setValue()
def
value()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This data type is used to hold a name-value pair.
- __init__()¶
- __init__(arg__1)
- Parameters:
arg__1 –
QMqttStringPair
- __init__(name, value)
- Parameters:
name – str
value – str
- name()¶
- Return type:
str
Returns the name of the string pair.
See also
- __ne__(other)¶
- Parameters:
other –
QMqttStringPair
- Return type:
bool
Returns
true
if this instance does not matchother
.- __eq__(other)¶
- Parameters:
other –
QMqttStringPair
- Return type:
bool
Returns
true
if this instance matchesother
.- setName(n)¶
- Parameters:
n – str
Sets the name to
n
.See also
- setValue(v)¶
- Parameters:
v – str
Sets the value to
v
.See also
- value()¶
- Return type:
str
Returns the value of the string pair.
See also