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