readTopicName method
Topic name
Implementation
void readTopicName(MqttByteBuffer stream) {
topicName = MqttByteBuffer.readMqttString(stream);
final enc = MqttUtf8Encoding();
_length = enc.length(enc.toUtf8(topicName)) + 2;
}
Topic name
void readTopicName(MqttByteBuffer stream) {
topicName = MqttByteBuffer.readMqttString(stream);
final enc = MqttUtf8Encoding();
_length = enc.length(enc.toUtf8(topicName)) + 2;
}