public void Get(UInt16 expected, MQTTType input)
        {
            var mqtt = new MQTT
            {
                Bytes = new Byte[32]
            };

            mqtt.Type = input;
            mqtt.SetByte(2, 0x12);
            mqtt.SetByte(3, 0x34);

            mqtt.Id.Should().Be(expected);
        }
        public void Get()
        {
            var mqtt = new MQTT
            {
                Bytes = new Byte[2]
            };

            mqtt.SetByte(0, 0b_0000_0001);

            mqtt.Retain.Should().Be(true);
        }
Esempio n. 3
0
        public void Get()
        {
            var mqtt = new MQTT
            {
                Bytes = new Byte[2]
            };

            mqtt.SetByte(0, 0b_0000_1000);

            mqtt.Duplicate.Should().Be(true);
        }