You are on page 1of 3

MQTT Broker

MQTT Broker

Body-Cerebellar-Brain
Brain MQTT Broker
(Publish)(Subscribe)

6.1 MQTT Broker

MQTT Broker HiveMQRabbitMQApache Apollo


Mosquitto 6-1 MQTT Broker HiveMQ
MQTT BrokerRabbitMQ MQTT RabbitMQ
AMQP Apache Apollo
Mosquitto MQTT Broker

6-1. MQTT Broker

Mosquitto MQTT 3.1 MQTT eclipse.org


Windows
OSXLinuxRaspberry Pi Windows Server 2008
Mosquitto Windows
.dll mosquitto.exe
Mosquitto MQTT BrokerMosquitto MQTT Broker 1883
1024 Mosquitto .conf TXT
6-2#port 1883 1883 0~65535

1
MQTT Broker

#max_connections 1024 1024 -1 1024


Mosquitto.exe

6-2. Mosquitto .conf

6.2 ASP.NET MQTT

ASP.NET C# C#
Windows MQTT Windows

SQL

M2Mqtt eclipse.org .NET WinRT MQTT


MQTT 6-3
MqttClient MQTT Broker
MQTT 3.1 MqttClient Connect() Client ID MQTT
Broker Handler
MqttClient Publish() Subscribe()

Handler MqttMsgPublishEventArgs
(Topic)(Payload) e e.Topic
e.Message byte
Encoding.UTF8.GetString() UTF

2
MQTT Broker

6-3. M2Mqtt