File: | lib/Net/MQTT/Message/PubComp.pm |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 3 3 3 | 5333 20 216 | use strict; | ||||
2 | 3 3 3 | 50 16 418 | use warnings; | ||||
3 | package Net::MQTT::Message::PubComp; | ||||||
4 | |||||||
5 | # ABSTRACT: Perl module to represent an MQTT PubComp message | ||||||
6 | |||||||
7 - 17 | =head1 SYNOPSIS # instantiated by Net::MQTT::Message =head1 DESCRIPTION This module encapsulates a single MQTT Publish Complete message. It is a specific subclass used by L<Net::MQTT::Message> and should not need to be instantiated directly. =cut | ||||||
18 | |||||||
19 | 3 3 3 | 38 16 628 | use base 'Net::MQTT::Message::JustMessageId'; | ||||
20 | 3 3 3 | 41 15 94 | use Net::MQTT::Constants qw/:all/; | ||||
21 | |||||||
22 | sub message_type { | ||||||
23 | 7 | 173 | 7 | ||||
24 | } | ||||||
25 | |||||||
26 | =method C<message_id()> | ||||||
27 | |||||||
28 | Returns the message id field of the MQTT Publish Complete message. | ||||||
29 | |||||||
30 | =cut | ||||||
31 | |||||||
32 | 1; |