Feng Lee пре 11 година
родитељ
комит
2d05d1044a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      apps/emqtt/include/emqtt_packet.hrl

+ 2 - 1
apps/emqtt/include/emqtt_packet.hrl

@@ -98,10 +98,11 @@
 %%------------------------------------------------------------------------------
 %% MQTT Packets
 %%------------------------------------------------------------------------------
+-type mqtt_clientid()  :: binary().
 -type mqtt_packet_id() :: 1..16#ffff | undefined.
 
 -record(mqtt_packet_connect,  {
-    clientid    = <<>>              :: binary(),
+    clientid    = <<>>              :: mqtt_clientid(),
     proto_ver   = ?MQTT_PROTO_V311  :: mqtt_vsn(),
     proto_name  = <<"MQTT">>        :: binary(),
     will_retain = false             :: boolean(),