美文网首页
MQTT iOS使用小记

MQTT iOS使用小记

作者: 独立开发者Lau | 来源:发表于2022-01-04 15:48 被阅读0次

    “MQTT is a Client Server publish/subscribe messaging transport protocol. It is lightweight, open, simple, and designed so as to be easy to implement. These characteristics make it ideal for use in many situations, including constrained environments such as for communication in Machine to Machine (M2M) and Internet of Things (IoT) contexts where a small code footprint is required and/or network bandwidth is at a premium.”
    Citation from the official MQTT 3.1.1 specification

    image.png

    一、基本概念
    MQ----a product IBM developed to support MQ telemetry transport.
    TT----Telemetry Transport

    publisher、subscriber、broker
    Mosquito

    pub/sub
    model
    topics

    port
    1883
    8883 encrypted

    operations
    public
    subscribe
    unsubcrribe
    ping PINGREQ/PINGRESP last will

    QoS
    reliable、latency、bandwidth
    0 at most once
    1 at last once
    2 exactly once

    organization
    OASIS

    二、MQTTClient
    MQTT-Client-Framework is a native Objective-C iOS library. It uses CFNetwork for networking and CoreData for persistence. It is a complete implementation of MQTT 3.1.1 and supports TLS.

    updating

    相关文章

      网友评论

          本文标题:MQTT iOS使用小记

          本文链接:https://www.haomeiwen.com/subject/bhgqcrtx.html