Show local route
This commit is contained in:
parent
945f925136
commit
6028d6e83e
|
@ -218,7 +218,9 @@ routes(["list"]) ->
|
||||||
foreach(fun print/1, Routes);
|
foreach(fun print/1, Routes);
|
||||||
|
|
||||||
routes(["show", Topic]) ->
|
routes(["show", Topic]) ->
|
||||||
print(mnesia:dirty_read(mqtt_route, bin(Topic)));
|
Routes = lists:append(ets:lookup(mqtt_route, bin(Topic)),
|
||||||
|
ets:lookup(mqtt_local_route, bin(Topic))),
|
||||||
|
foreach(fun print/1, Routes);
|
||||||
|
|
||||||
routes(_) ->
|
routes(_) ->
|
||||||
?USAGE([{"routes list", "List all routes"},
|
?USAGE([{"routes list", "List all routes"},
|
||||||
|
|
Loading…
Reference in New Issue