mqtt_clientid()

This commit is contained in:
Feng Lee 2015-04-15 21:17:25 +08:00
parent 4fe72445fd
commit 2d05d1044a
1 changed files with 2 additions and 1 deletions

View File

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