mqtt_user with clientid, peername

This commit is contained in:
Ery Lee 2015-03-23 19:43:29 +08:00
parent 42c220cfa5
commit a864fda201
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,9 @@
%% MQTT User Management
%%------------------------------------------------------------------------------
-record(mqtt_user, {
username :: binary(),
clientid :: binary(),
peername :: list(),
username :: binary(),
passwdhash :: binary()
}).
@ -78,5 +80,8 @@
%% MQTT Authorization
%%------------------------------------------------------------------------------
%%{subscribe, From, Topic}
%%{publish, From, Topic}
%%TODO: ClientId | Username --> Pub | Sub --> Topics