sendPayload method

  1. @override
void sendPayload(
  1. String payload,
  2. String channel
)
override

Implementation

@override
void sendPayload(String payload, String channel) {
  final builder = MqttClientPayloadBuilder();
  builder.addString(payload);
  _client!.publishMessage(channel, MqttQos.atLeastOnce, builder.payload!);
}