From 2d05d1044ac0ea5e0e3f575164544efa1e8e0c73 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Wed, 15 Apr 2015 21:17:25 +0800 Subject: [PATCH] mqtt_clientid() --- apps/emqtt/include/emqtt_packet.hrl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/emqtt/include/emqtt_packet.hrl b/apps/emqtt/include/emqtt_packet.hrl index 36442a923..105a939cf 100644 --- a/apps/emqtt/include/emqtt_packet.hrl +++ b/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(),