Net::MQTT::TopicStore - Perl module to represent MQTT topic store
version 1.163170
use Net::MQTT::TopicStore; my $topic_store = Net::MQTT::TopicStore->new(); $topic_store->add($topic_pattern1); $topic_store->add($topic_pattern2); my @topics = @{ $topic->get($topic) }; $topic_store->remove($topic_pattern2);
This module encapsulates a single MQTT topic store.
new( )
Constructs a Net::MQTT::TopicStore object.
add( $topic_pattern )
Adds the topic pattern to the store.
delete( $topic_pattern )
Remove the topic pattern from the store.
values( $topic )
Returns all the topic patterns in the store that apply to the given topic.
Mark Hindess <soft-cpan@temporalanomaly.com>
This software is copyright (c) 2014 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::MQTT::Message, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::MQTT::Message
CPAN shell
perl -MCPAN -e shell install Net::MQTT::Message
For more information on module installation, please visit the detailed CPAN module installation guide.