Browse Source

Rename 'MAX_LEN' to 'MAX_PACKET_LEN'

Feng Lee 9 years ago
parent
commit
de12c58af0
1 changed files with 6 additions and 1 deletions
  1. 6 1
      include/emqttd_protocol.hrl

+ 6 - 1
include/emqttd_protocol.hrl

@@ -129,11 +129,16 @@
 
 -type(mqtt_connack() :: ?CONNACK_ACCEPT..?CONNACK_AUTH).
 
+%%--------------------------------------------------------------------
+%% Max MQTT Packet Length
+%%--------------------------------------------------------------------
+
+-define(MAX_PACKET_LEN, 16#fffffff).
+
 %%--------------------------------------------------------------------
 %% MQTT Parser and Serializer
 %%--------------------------------------------------------------------
 
--define(MAX_LEN, 16#fffffff).
 -define(HIGHBIT, 2#10000000).
 -define(LOWBITS, 2#01111111).