属性配置之后,MQTT客户实例会从MQTT客户机工厂获得。
After properties configuration, an MQTT client instance is obtained from the MQTT client factory.
在该例中,因为两个业务对象之间具有从属性,所以在访问相关的订单之前,有必要获得一个客户实例。
In the example, it is necessary to get a customer instance before accessing the associated orders because of the dependency between these two business objects.
创建Mqtt客户实例需要几个参数,包括一个惟一客户机id、代理ip地址和端口以及可选的MqttProperties对象。
Creating an Mqtt client instance requires several parameters including a unique client ID, a broker IP address and port, and the optional MqttProperties object described previously.
应用推荐