mqtt_user with clientid, peername
This commit is contained in:
parent
42c220cfa5
commit
a864fda201
|
@ -70,7 +70,9 @@
|
||||||
%% MQTT User Management
|
%% MQTT User Management
|
||||||
%%------------------------------------------------------------------------------
|
%%------------------------------------------------------------------------------
|
||||||
-record(mqtt_user, {
|
-record(mqtt_user, {
|
||||||
username :: binary(),
|
clientid :: binary(),
|
||||||
|
peername :: list(),
|
||||||
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue