您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ReceivedMqttPacket.cs 451 B

123456789101112131415161718
  1. using System;
  2. using MQTTnet.Packets;
  3. namespace MQTTnet.Adapter
  4. {
  5. public class ReceivedMqttPacket
  6. {
  7. public ReceivedMqttPacket(MqttPacketHeader header, byte[] body)
  8. {
  9. Header = header ?? throw new ArgumentNullException(nameof(header));
  10. Body = body ?? throw new ArgumentNullException(nameof(body));
  11. }
  12. public MqttPacketHeader Header { get; }
  13. public byte[] Body { get; }
  14. }
  15. }